- Struct
AuthPayload
- Struct
MultisignAuthPayload
- Struct
SignData
- Constants
- Function
new_sign_data
- Function
from_bytes
- Function
encode_full_message
- Function
signature
- Function
message_prefix
- Function
message_info
- Function
public_key
- Function
from_address
- Function
multisign_from_bytes
- Function
multisign_signatures
- Function
multisign_message_prefix
- Function
multisign_message_info
- Function
multisign_public_keys
- Function
multisign_encode_full_message
use 0x1::string;
use 0x1::vector;
use 0x2::bcs;
use 0x2::consensus_codec;
use 0x2::hex;
#[data_struct]
struct AuthPayload has copy, drop, store
#[data_struct]
struct MultisignAuthPayload has copy, drop, store
#[data_struct]
struct SignData has copy, drop
const ErrorInvalidSignature: u64 = 1;
const MessageInfoPrefix: vector<u8> = [82, 111, 111, 99, 104, 32, 84, 114, 97, 110, 115, 97, 99, 116, 105, 111, 110, 58, 10];
const MessagePrefix: vector<u8> = [66, 105, 116, 99, 111, 105, 110, 32, 83, 105, 103, 110, 101, 100, 32, 77, 101, 115, 115, 97, 103, 101, 58, 10];
public fun new_sign_data(message_prefix: vector<u8>, message_info: vector<u8>): auth_payload::SignData
public fun from_bytes(bytes: vector<u8>): auth_payload::AuthPayload
public fun encode_full_message(self: &auth_payload::AuthPayload, tx_hash: vector<u8>): vector<u8>
public fun signature(payload: &auth_payload::AuthPayload): vector<u8>
public fun message_prefix(payload: &auth_payload::AuthPayload): vector<u8>
public fun message_info(payload: &auth_payload::AuthPayload): vector<u8>
public fun public_key(payload: &auth_payload::AuthPayload): vector<u8>
public fun from_address(payload: &auth_payload::AuthPayload): string::String
public fun multisign_from_bytes(bytes: vector<u8>): auth_payload::MultisignAuthPayload
public fun multisign_signatures(payload: &auth_payload::MultisignAuthPayload): &vector<vector<u8>>
public fun multisign_message_prefix(payload: &auth_payload::MultisignAuthPayload): &vector<u8>
public fun multisign_message_info(payload: &auth_payload::MultisignAuthPayload): &vector<u8>
public fun multisign_public_keys(payload: &auth_payload::MultisignAuthPayload): &vector<vector<u8>>
public fun multisign_encode_full_message(self: &auth_payload::MultisignAuthPayload, tx_hash: vector<u8>): vector<u8>