Helios API/ API Reference/ Classes/
Signature
Represents a Ed25519 signature.
Also contains a reference to the PubKey that did the signing.
Hierarchy
-
↳
Signature
Index
Constructors
constructor
• new Signature(pubKey
, signature
)
Parameters
Name | Type |
---|---|
pubKey | number [] | PubKey |
signature | number [] |
Overrides
Accessors
bytes
• get
bytes(): number
[]
Returns
number
[]
pubKey
• get
pubKey(): PubKey
Returns
pubKeyHash
• get
pubKeyHash(): PubKeyHash
Returns
Methods
dump
▸ dump(): any
Returns
any
isDummy
▸ isDummy(): boolean
Returns
boolean
toCbor
▸ toCbor(): number
[]
Returns
number
[]
Inherited from
toCborHex
▸ toCborHex(): string
Returns
string
Inherited from
verify
▸ verify(msg
): void
Throws error if incorrect
Parameters
Name | Type |
---|---|
msg | number [] |
Returns
void
dummy
▸ Static
dummy(): Signature
Returns
fromCbor
▸ Static
fromCbor(bytes
): Signature
Parameters
Name | Type |
---|---|
bytes | number [] |