0x1::Signer
Provide access methods for Signer.
borrow_address
Borrows the address of the signer
Conceptually, you can think of the signer
as being a resource struct wrapper around an
address
resource struct Signer has key, store { addr: address }
borrow_address
borrows this inner field
public fun borrow_address(s: &signer): &address
native public fun borrow_address(s: &signer): &address;
address_of
Copies the address of the signer
public fun address_of(s: &signer): address
public fun address_of(s: &signer): address {
*borrow_address(s)
}
pragma opaque = true;
aborts_if false;
ensures result == address_of(s);
pragma verify;
pragma aborts_if_is_strict;