ChangePubKey
Type Create2Data
Type ChangePubKeyAuthDataEthCreate2
Type ChangePubKeyAuthDataEthEcdsa
Type ChangePubKeyAuthDataOnchain
func CreateSignedChangePubkey
Create a signed ChangePubkey
input:
zklinkSigner: zklink signer
tx: unsigned transaction ChangePubkey
ethAuthData:
ChangePubKeyAuthData
is a interface which can be ChangePubKeyAuthDataOnchain, ChangePubKeyAuthDataEthCreate2 or ChangePubKeyAuthDataEthEcdsa
type ChangePubKeyBuilder
The ChangePubKeyBuilder is used to build the type ChangePubKey
type ChangePubKey
ChangePubkey transaction type, it's a opaque data type.
func NewChangePubKey
Create a ChangePubkey
input:
builder: ChangePubKeyBuilder
func (*ChangePubKey) GetSignature
Get the L3 signature of the ChangePubKey
func (*ChangePubKey) GetBytes
Get the encoded bytes of ChangePubKey, which is used to create the L3 signature.
func (*ChangePubKey) TxHash
Get the Transaction Hash of ChangePubKey
func (*ChangePubKey) JsonStr
Get the json str of ChangePubKey
func (*ChangePubKey) IsValid
Check if all the fields in ChangePubKey are valid. For example, if the ChainId
is exceeded the maximum ChainId, it will return false.
func (*ChangePubKey) IsOnchain
Check if the transaction's auth data is OnChain.
func (*ChangePubKey) IsSignatureValid
Check if the L3 signature is valid or not.
func (*ChangePubKey) SubmitterSignature
Create the submitter signature.
input:
signer: ZkLinkSigner
func (*ChangePubKey) ToZklinkTx
Change the ChangePubKey transaction type to ZkLinkTx type.
Last updated