Module sol_did::integrations
source · Re-exports
pub use self::is_authority::derive_did_account;
pub use self::is_authority::derive_did_account_with_bump;
Functions
Will return if given solana public key, or ethereum address (as derived from an ethereum signature)
is a valid authority (CAPABILITY_INVOCATION) on the given did_account.
Authorities may be direct, or via a chain of controlling did accounts.
In the latter case, the chain must be provided in the following order:
did_account -> controlling_did_accounts[0] -> … -> controlling_did_accounts[n] -> authority
where ‘->’ represents the relationship “is controlled by”.
Controlling DID Accounts are a tuple of (AccountInfo, PublicKey)
the public key is used to derive a default DidAccount object, if
the DID is a generative DID