Message class
Bitcoin Signed Messages
The Bitcoin Signed Message "standard" takes a novel approach in relying on our ability to recover a Public Key from an ECDSA signature. Once we have the public key recovered we can then generate a corresponding bitcoin wallet Address and verify that an address corresponds to a signature.
Private Key (is used to generate) ---> Signature (is used to recover) ---> Public Key (is used to create) ---> Address
Reference (section 4.1.6) : http://www.secg.org/sec1-v2.pdf
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- MAGIC_BYTES → String
-
final
-
message
→ List<
int> -
The message we are signing/verifying
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
magicHash(
) → List< int> - A double-sha256 digest unique to Bitcoin Signed Messages
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
SVPrivateKey privateKey) → String - Sign the message using the private key
-
toString(
) → String -
A string representation of this object.
inherited
-
verifyFromAddress(
Address address, String sigBuffer) → bool -
Verify that this message was signed by the owner of corresponding Address in
address
-
verifyFromPublicKey(
SVPublicKey publicKey, String sigBuffer) → bool -
Verify that this message was signed by the owner of public key in
publicKey
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited