Methods
computeBytesForSigning
- computeBytesForSigning(message): Uint8Array
Returns Uint8Array
computeBytesForVerifying
- computeBytesForVerifying(message): Uint8Array
Returns Uint8Array
packMessage
- packMessage(message): {
address: string;
message: string;
signature: string;
version: number;
} Returns {
address: string;
message: string;
signature: string;
version: number;
}
address: string
message: string
signature: string
version: number
Private
trimHexPrefix
- trimHexPrefix(data): string
Returns string
unpackMessage
- unpackMessage(packedMessage): Message
Parameters
- packedMessage: {
address?: string;
message: string;
signature?: string;
version?: number;
}Optional
address?: string
message: string
Optional
signature?: string
Optional
version?: number