ChangePubKey

Type Create2Data

type Create2Data struct {
	CreatorAddress ZkLinkAddress
	SaltArg        H256
	CodeHash       H256
}

Type ChangePubKeyAuthDataEthCreate2

type ChangePubKeyAuthDataEthCreate2 struct {
	Data Create2Data
}

Type ChangePubKeyAuthDataEthEcdsa

type ChangePubKeyAuthDataEthEcdsa struct {
	EthSignature PackedEthSignature
}

Type ChangePubKeyAuthDataOnchain

type ChangePubKeyAuthDataOnchain struct {}

func CreateSignedChangePubkey

Create a signed ChangePubkey

input:

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:

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:

func (*ChangePubKey) ToZklinkTx

Change the ChangePubKey transaction type to ZkLinkTx type.

Last updated

Was this helpful?