Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateWalletInput ¶
type KMSClient ¶
type KMSClient interface { CreateKey(ctx context.Context, params *kms.CreateKeyInput, optFns ...func(*kms.Options)) (*kms.CreateKeyOutput, error) CreateAlias(ctx context.Context, params *kms.CreateAliasInput, optFns ...func(*kms.Options)) (*kms.CreateAliasOutput, error) TagResource(ctx context.Context, params *kms.TagResourceInput, optFns ...func(*kms.Options)) (*kms.TagResourceOutput, error) DescribeKey(ctx context.Context, params *kms.DescribeKeyInput, optFns ...func(*kms.Options)) (*kms.DescribeKeyOutput, error) GetPublicKey(ctx context.Context, params *kms.GetPublicKeyInput, optFns ...func(*kms.Options)) (*kms.GetPublicKeyOutput, error) Sign(ctx context.Context, params *kms.SignInput, optFns ...func(*kms.Options)) (*kms.SignOutput, error) EnableKey(ctx context.Context, params *kms.EnableKeyInput, optFns ...func(*kms.Options)) (*kms.EnableKeyOutput, error) DisableKey(ctx context.Context, params *kms.DisableKeyInput, optFns ...func(*kms.Options)) (*kms.DisableKeyOutput, error) }
type Provider ¶
type Provider interface { CreateWallet(ctx context.Context, input CreateWalletInput) (wallet KMSWallet, err error) GetWallet(ctx context.Context, keyId string) (wallet KMSWallet, err error) GetWalletTransactor(ctx context.Context, keyId string, chainId *big.Int) (*bind.TransactOpts, error) GetWalletCaller(ctx context.Context, keyId string, chainId *big.Int) (*bind.CallOpts, error) SignMessage(ctx context.Context, keyId string, message []byte) ([]byte, error) EnableWallet(ctx context.Context, keyId string) (*kms.EnableKeyOutput, error) DisableWallet(ctx context.Context, keyId string) (*kms.DisableKeyOutput, error) GetWalletByAlias(ctx context.Context, alias string) (wallet KMSWallet, err error) GetWalletTransactorByAlias(ctx context.Context, alias string, chainId *big.Int) (*bind.TransactOpts, error) GetWalletCallerByAlias(ctx context.Context, alias string, chainId *big.Int) (*bind.CallOpts, error) SignMessageByAlias(ctx context.Context, alias string, message []byte) ([]byte, error) EnableWalletByAlias(ctx context.Context, alias string) (*kms.EnableKeyOutput, error) DisableWalletByAlias(ctx context.Context, alias string) (*kms.DisableKeyOutput, error) GetKeyIdByAlias(ctx context.Context, alias string) (keyId string, err error) }
Click to show internal directories.
Click to hide internal directories.