Documentation ¶
Index ¶
Constants ¶
View Source
const ( AccountTypeEVM = "ethereum" AccountTypeAR = "arweave" )
Variables ¶
Functions ¶
func DecodeArSig ¶
func DecodeEthSig ¶
func IsArAddress ¶
Types ¶
type Account ¶
type Account struct { ID string // ID is eth address, notice: Case Sensitive Type string Nonce int64 }
func (*Account) UpdateNonce ¶
func (*Account) Verify ¶
func (a *Account) Verify(tx Transaction) (nonce int64, err error)
Verify & return transaction's nonce
func (*Account) VerifySig ¶
func (a *Account) VerifySig(tx Transaction) (err error)
only verify signature
type Transaction ¶
Click to show internal directories.
Click to hide internal directories.