Documentation
¶
Index ¶
Constants ¶
View Source
const ( SegWitType = hd.PubKeyType("segwit") TaprootType = hd.PubKeyType("taproot") )
Variables ¶
View Source
var ( Network = &chaincfg.MainNetParams KeyringOption = func(options *keyring.Options) { options.SupportedAlgos = keyring.SigningAlgoList{hd.Secp256k1, SegWit, Taproot} options.SupportedAlgosLedger = keyring.SigningAlgoList{hd.Secp256k1} } DefaultSigVerificationGasConsumer = func(meter storetypes.GasMeter, sig signing.SignatureV2, params authtypes.Params) error { pubkey := sig.PubKey switch pubkey.(type) { case *segwit.PubKey: meter.ConsumeGas(params.SigVerifyCostSecp256k1, "ante verify: Segwit") return nil case *taproot.PubKey: meter.ConsumeGas(params.SigVerifyCostSecp256k1, "ante verify: Taproot") return nil default: return ante.DefaultSigVerificationGasConsumer(meter, sig, params) } } )
View Source
var SegWit = segWigAlgo{}
View Source
var Taproot = taprootAlgo{}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.