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

Haskoin.Util.Arbitrary.Keys

Description

 
Synopsis

Documentation

arbitraryPrivateKey :: Gen PrivateKey Source #

Arbitrary private key with arbitrary compressed flag.

arbitraryPublicKey :: Ctx -> Gen PublicKey Source #

Arbitrary public key, either compressed or not.

arbitraryKeyPair :: Ctx -> Gen (PrivateKey, PublicKey) Source #

Arbitrary keypair, both either compressed or not.

arbitraryXPrvKey :: Gen XPrvKey Source #

Arbitrary extended private key.

arbitraryXPubKey :: Ctx -> Gen XPubKey Source #

Arbitrary extended public key.

arbitraryXKeyPair :: Ctx -> 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 :: Ctx -> 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.