lbcutil/psbt
nsa f06d6af2f0 psbt: return ErrInvalidKeydata if value isn't a 32-bit uint
This commit fixes a panic when deserializing PSBTs in raw binary.
If the key type was SighashType and the value was not 4 bytes long,
the call to binary.LittleEndian.Uint32(value) would panic as the
function expects 4 bytes to parse into a uint32. We now perform a
sanity check that asserts that the value is 4 bytes long.
2020-04-08 17:54:59 -04:00
..
bip32.go psbt: move bip32 structs into new file 2020-01-15 17:56:32 -08:00
creator.go psbt: remove Creator struct, create New function as entry point into package 2020-01-15 17:56:35 -08:00
extractor.go psbt: modify Extract method to return the transaction directly 2020-01-15 17:56:38 -08:00
finalizer.go psbt: create new utils file, refactor finalizer for consistent code style 2020-01-15 17:56:41 -08:00
go.mod psbt: create sub-module 2020-01-15 17:57:05 -08:00
go.sum psbt: create sub-module 2020-01-15 17:57:05 -08:00
partial_input.go psbt: return ErrInvalidKeydata if value isn't a 32-bit uint 2020-04-08 17:54:59 -04:00
partial_output.go psbt: move output into new file 2020-01-15 17:56:29 -08:00
partialsig.go psbt: create new utils file, refactor finalizer for consistent code style 2020-01-15 17:56:41 -08:00
psbt.go psbt: define MaxPsbtKeyLength and check against it when decoding 2020-04-08 17:53:06 -04:00
psbt_test.go psbt: fix deserialization with zero inputs 2020-03-23 10:38:36 +01:00
signer.go psbt: create new enum type for return values of Sign method 2020-01-15 17:56:47 -08:00
types.go psbt: move PSBT keys/type into new file 2020-01-15 17:56:23 -08:00
updater.go psbt: refactor updater.go for consistent code style 2020-01-15 17:56:50 -08:00
utils.go psbt: define MaxPsbtKeyLength and check against it when decoding 2020-04-08 17:53:06 -04:00