Documentation ¶
Index ¶
- Constants
- type CreateEthAccountRequest
- type CreateEthereumStoreRequest
- type CreateKeyRequest
- type CreateKeyStoreRequest
- type CreateSecretStoreRequest
- type DomainSeparator
- type EthAccountResponse
- type ImportEthAccountRequest
- type ImportKeyRequest
- type KeyResponse
- type SecretResponse
- type SetSecretRequest
- type SignBase64PayloadRequest
- type SignEEATransactionRequest
- type SignETHTransactionRequest
- type SignMessageRequest
- type SignQuorumPrivateTransactionRequest
- type SignTypedDataRequest
- type Type
- type UpdateEthAccountRequest
- type UpdateKeyRequest
Constants ¶
View Source
const ( LegacyTxType = "legacy" AccessListTxType = "access_list" DynamicFeeTxType = "dynamic_fee" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateEthAccountRequest ¶
type CreateEthereumStoreRequest ¶
type CreateEthereumStoreRequest struct {
KeyStore string `json:"keyStore" yaml:"key_store" validate:"required" example:"my-key-store"`
}
type CreateKeyRequest ¶
type CreateKeyRequest struct { Curve string `json:"curve" validate:"required,isCurve" example:"secp256k1" enums:"babyjubjub,secp256k1"` SigningAlgorithm string `json:"signingAlgorithm" validate:"required,isSigningAlgorithm" example:"ecdsa" enums:"ecdsa,eddsa"` Tags map[string]string `json:"tags,omitempty"` }
type CreateKeyStoreRequest ¶
type CreateSecretStoreRequest ¶
type CreateSecretStoreRequest struct {
Vault string `json:"vault" validate:"required" yaml:"vault" example:"hashicorp-kv-v2"`
}
type DomainSeparator ¶
type DomainSeparator struct { Name string `json:"name" validate:"required" example:"MyDApp"` Version string `json:"version" validate:"required" example:"v1.0.0"` ChainID int64 `json:"chainID" validate:"required" example:"1"` VerifyingContract string `json:"verifyingContract,omitempty" validate:"omitempty,isHexAddress" example:"0x905B88EFf8Bda1543d4d6f4aA05afef143D27E18"` Salt string `json:"salt,omitempty" validate:"omitempty" example:"some-random-string"` }
type EthAccountResponse ¶
type EthAccountResponse struct { PublicKey hexutil.Bytes `json:"publicKey" example:"0x1abae27a0cbfb02945720425d3b80c7e09728534" swaggertype:"string"` CompressedPublicKey hexutil.Bytes `json:"compressedPublicKey" example:"0x6019a3c8..." swaggertype:"string"` CreatedAt time.Time `json:"createdAt" example:"2020-07-09T12:35:42.115395Z"` UpdatedAt time.Time `json:"updatedAt" example:"2020-07-09T12:35:42.115395Z"` DeletedAt *time.Time `json:"deletedAt,omitempty" example:"2020-07-09T12:35:42.115395Z"` KeyID string `json:"keyId" example:"my-key-id"` Tags map[string]string `json:"tags,omitempty"` Address common.Address `json:"address" example:"0x664895b5fE3ddf049d2Fb508cfA03923859763C6" swaggertype:"string"` Disabled bool `json:"disabled" example:"false"` }
type ImportEthAccountRequest ¶
type ImportKeyRequest ¶
type ImportKeyRequest struct { Curve string `json:"curve" validate:"required,isCurve" example:"secp256k1" enums:"babyjubjub,secp256k1"` SigningAlgorithm string `json:"signingAlgorithm" validate:"required,isSigningAlgorithm" example:"ecdsa" enums:"ecdsa,eddsa"` PrivateKey []byte `json:"privateKey" validate:"required" example:"bXkgc2lnbmVkIG1lc3NhZ2U=" swaggertype:"string"` Tags map[string]string `json:"tags,omitempty"` }
type KeyResponse ¶
type KeyResponse struct { ID string `json:"id" example:"my-key"` PublicKey string `json:"publicKey" example:"Cjix/fS3WdqKGKabagBNYwcClan5aImoFpnjSF0cqJs=" swaggertype:"string"` Curve string `json:"curve" example:"secp256k1"` SigningAlgorithm string `json:"signingAlgorithm" example:"ecdsa"` Tags map[string]string `json:"tags,omitempty"` Annotations *entities.Annotation `json:"annotations,omitempty"` Disabled bool `json:"disabled" example:"false"` CreatedAt time.Time `json:"createdAt" example:"2020-07-09T12:35:42.115395Z"` UpdatedAt time.Time `json:"updatedAt" example:"2020-07-09T12:35:42.115395Z"` DeletedAt *time.Time `json:"deletedAt,omitempty" example:"2020-07-09T12:35:42.115395Z"` }
type SecretResponse ¶
type SecretResponse struct { ID string `json:"id" example:"my-secret"` Value string `json:"value" example:"my-value"` Tags map[string]string `json:"tags,omitempty"` Version string `json:"version" example:"1"` Disabled bool `json:"disabled" example:"false"` CreatedAt time.Time `json:"createdAt" example:"2020-07-09T12:35:42.115395Z"` UpdatedAt time.Time `json:"updatedAt" example:"2020-07-09T12:35:42.115395Z"` DeletedAt *time.Time `json:"deletedAt,omitempty" example:"2020-07-09T12:35:42.115395Z"` }
type SetSecretRequest ¶
type SignBase64PayloadRequest ¶
type SignBase64PayloadRequest struct {
Data []byte `json:"data" validate:"required" example:"bXkgc2lnbmVkIG1lc3NhZ2U=" swaggertype:"string"`
}
type SignEEATransactionRequest ¶
type SignEEATransactionRequest struct { Nonce hexutil.Uint64 `json:"nonce" example:"0x1" swaggertype:"string"` To *common.Address `json:"to,omitempty" example:"0x905B88EFf8Bda1543d4d6f4aA05afef143D27E18" swaggertype:"string"` Value hexutil.Big `json:"value,omitempty" example:"0x1" swaggertype:"string"` GasPrice hexutil.Big `json:"gasPrice,omitempty" example:"0x0" swaggertype:"string"` GasLimit hexutil.Uint64 `json:"gasLimit,omitempty" example:"0x5208" swaggertype:"string"` Data hexutil.Bytes `json:"data,omitempty" example:"0xfeaeee..." swaggertype:"string"` ChainID hexutil.Big `json:"chainID" validate:"required" example:"0x1 (mainnet)" swaggertype:"string"` PrivateFrom string `` /* 140-byte string literal not displayed */ PrivateFor []string `` /* 173-byte string literal not displayed */ PrivacyGroupID string `json:"privacyGroupId,omitempty" validate:"omitempty,base64" example:"A1aVtMxLCUHmBVHXoZzzBgPbW/wj5axDpW9X8l91SGo="` }
type SignETHTransactionRequest ¶
type SignETHTransactionRequest struct { TransactionType string `json:"transactionType,omitempty" example:"dynamic_fee" enums:"legacy,access_list,dynamic_fee"` Nonce hexutil.Uint64 `json:"nonce" example:"0x1" swaggertype:"string"` To *common.Address `json:"to,omitempty" example:"0x905B88EFf8Bda1543d4d6f4aA05afef143D27E18" swaggertype:"string"` Value hexutil.Big `json:"value,omitempty" example:"0xfeaeae" swaggertype:"string"` GasPrice hexutil.Big `json:"gasPrice,omitempty" example:"0x0" swaggertype:"string"` GasLimit hexutil.Uint64 `json:"gasLimit" validate:"required" example:"0x5208" swaggertype:"string"` Data hexutil.Bytes `json:"data,omitempty" example:"0xfeaeee..." swaggertype:"string"` ChainID hexutil.Big `json:"chainID" validate:"required" example:"0x1 (mainnet)" swaggertype:"string"` GasFeeCap *hexutil.Big `json:"maxFeePerGas,omitempty" example:"0x5208" swaggertype:"string"` GasTipCap *hexutil.Big `json:"maxPriorityFeePerGas,omitempty" example:"0x5208" swaggertype:"string"` AccessList types.AccessList `json:"accessList,omitempty" swaggertype:"array,object"` }
type SignMessageRequest ¶
type SignQuorumPrivateTransactionRequest ¶
type SignQuorumPrivateTransactionRequest struct { Nonce hexutil.Uint64 `json:"nonce" example:"0x1" swaggertype:"string"` To *common.Address `json:"to,omitempty" example:"0x905B88EFf8Bda1543d4d6f4aA05afef143D27E18" swaggertype:"string"` Value hexutil.Big `json:"value,omitempty" example:"0x1" swaggertype:"string"` GasPrice hexutil.Big `json:"gasPrice" validate:"required" example:"0x0" swaggertype:"string"` GasLimit hexutil.Uint64 `json:"gasLimit" validate:"required" example:"0x5208" swaggertype:"string"` Data hexutil.Bytes `json:"data,omitempty" example:"0xfeaeee..." swaggertype:"string"` }
type SignTypedDataRequest ¶
type SignTypedDataRequest struct { DomainSeparator DomainSeparator `json:"domainSeparator" validate:"required"` Types map[string][]Type `json:"types" validate:"required"` Message map[string]interface{} `json:"message" validate:"required"` MessageType string `json:"messageType" validate:"required" example:"Mail"` }
type UpdateEthAccountRequest ¶
type UpdateKeyRequest ¶
Click to show internal directories.
Click to hide internal directories.