DERCodec class

Strict DER signature encoding/decoding codec. Reference https://github.com/bitcoin/bips/blob/master/bip-0066.mediawiki Format: 0x30 total-length 0x02 R-length R 0x02 S-length S NOTE: SIGHASH byte ignored AND restricted, truncate before use

Inheritance

Constructors

DERCodec()
const

Properties

decoder → DerDecoder
Returns the decoder of this, converting from T to S.
no setteroverride
encoder → DerEncoder
Returns the encoder from S to T.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inverted Codec<Uint8List, DER>
Inverts this.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

check(Uint8List buffer) bool
Signature Check
decode(Uint8List encoded) DER
Decodes encoded data.
inherited
encode(DER input) Uint8List
Encodes input.
inherited
fuse<R>(Codec<Uint8List, R> other) Codec<DER, R>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited