haskoin-core-0.21.2: Bitcoin & Bitcoin Cash library for Haskell
CopyrightNo rights reserved
LicenseMIT
Maintainerjprupp@protonmail.ch
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Haskoin.Util.Arbitrary.Keys

Description

 
Synopsis

Documentation

arbitrarySecKeyI :: Gen SecKeyI Source #

Arbitrary private key with arbitrary compressed flag.

arbitraryKeyPair :: Gen (SecKeyI, PubKeyI) Source #

Arbitrary keypair, both either compressed or not.

arbitraryXPrvKey :: Gen XPrvKey Source #

Arbitrary extended private key.

arbitraryXPubKey :: Gen (XPrvKey, XPubKey) Source #

Arbitrary extended public key with its corresponding private key.

genIndex :: Gen Word32 Source #

Arbitrary derivation index with last bit unset.

arbitraryBip32PathIndex :: Gen Bip32PathIndex Source #

Arbitrary BIP-32 path index. Can be hardened or not.

arbitraryHardPath :: Gen HardPath Source #

Arbitrary BIP-32 derivation path composed of only hardened derivations.

arbitrarySoftPath :: Gen SoftPath Source #

Arbitrary BIP-32 derivation path composed of only non-hardened derivations.

arbitraryDerivPath :: Gen DerivPath Source #

Arbitrary derivation path composed of hardened and non-hardened derivations.

arbitraryParsedPath :: Gen ParsedPath Source #

Arbitrary parsed derivation path. Can contain ParsedPrv, ParsedPub or ParsedEmpty elements.

arbitrarySignature :: Gen (Hash256, SecKey, Sig) Source #

Arbitrary message hash, private key, nonce and corresponding signature. The signature is generated with a random message, random private key and a random nonce.