Versions in this module Expand all Collapse all v0 v0.0.1 Aug 29, 2024 Changes in this version + const AuxDataSize + const ChainIdSize + const DepositAddrTag + const DepositAuxTag + const DepositAuxV0 + const EvmTag + const MaxReferralIdSize + const SegwitTweakTag + const TweakSize + func CalcTweakBytes(blockchainType BlockchainType, chainId [32]byte, ...) ([]byte, error) + func ComputeAuxDataV0(nonce uint32, referrerId []byte) ([]byte, error) + func EvmDepositSegwitAddr(pk *PublicKey, bridge, wallet Address, chainId, auxData []byte, ...) (string, error) + func EvmDepositTweak(lbtcContract, wallet Address, chainId, auxData []byte) ([]byte, error) + func GetDepositAuxTagBytes() [32]byte + func PubkeyToSegwitAddr(pk *PublicKey, net *chaincfg.Params) (string, error) + type Address = eth.Address + type BlockchainType string + const BlockchainTypeEvm + type JacobianPoint = secp256k1.JacobianPoint + type ModNScalar = secp256k1.ModNScalar + type PublicKey = secp256k1.PublicKey + func EvmDepositSegwitPubkey(pk *PublicKey, lbtcContract, wallet Address, chainId, auxData []byte) (*PublicKey, error) + func TweakPublicKey(pk *PublicKey, tweak []byte) (*PublicKey, error) + type Sha256 = hash.Hash