Properties
data
type
Methods
sharedSecret
- sharedSecret(publicKey: PublicKey): Checksum512
-
signMessage
- signMessage(message: BytesType): Signature
-
toJSON
- toJSON(): string
-
Returns string
toPublic
- toPublic(): PublicKey
-
toString
- toString(): string
-
Returns string
toWif
- toWif(): string
-
Returns string
Static
fromString
- fromString(string: string, ignoreChecksumError?: boolean): PrivateKey
-
Parameters
-
string: string
-
Optional
ignoreChecksumError: boolean
Static
generate
- generate(type: string): PrivateKey
-
Derive the shared secret between this private key and given public key.
Throws
If the key type isn't R1 or K1.