use 0x1::signer;
Returns the signer of the module address of the generic type T
.
This is safe because the generic type T
is private, meaning it can only be used within the module that defines it.
#[private_generics(#[T])]
public fun module_signer<T>(): signer
Returns the address of the signer.
public fun address_of(signer: &signer): address