hs-abci-sdk-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Tendermint.SDK.Crypto

Synopsis

Documentation

class MakeDigest a where Source #

Class encapsulating data which can hashed.

Methods

makeDigest :: a -> Digest SHA256 Source #

Instances

Instances details
MakeDigest RawTransaction Source # 
Instance details

Defined in Tendermint.SDK.Types.Transaction

Methods

makeDigest :: RawTransaction -> Digest SHA256 Source #

class SignatureSchema alg where Source #

Defines the types and methods for the signature schema parameterized by alg.

Associated Types

type PubKey alg :: Type Source #

type PrivateKey alg :: Type Source #

type Signature alg :: Type Source #

type Message alg :: Type Source #

Methods

algorithm :: Proxy alg -> Text Source #

sign :: Proxy alg -> PrivateKey alg -> Message alg -> Signature alg Source #

verify :: Proxy alg -> PubKey alg -> Signature alg -> Message alg -> Bool Source #

makePubKey :: Proxy alg -> ByteString -> Maybe (PubKey alg) Source #

makeSignature :: Proxy alg -> ByteString -> Maybe (Signature alg) Source #

derivePubKey :: Proxy alg -> PrivateKey alg -> PubKey alg Source #

addressFromPubKey :: Proxy alg -> PubKey alg -> Address Source #

data Secp256k1 Source #

Instances

Instances details
RecoverableSignatureSchema Secp256k1 Source # 
Instance details

Defined in Tendermint.SDK.Crypto

Associated Types

type RecoverableSignature Secp256k1 Source #

SignatureSchema Secp256k1 Source # 
Instance details

Defined in Tendermint.SDK.Crypto

type RecoverableSignature Secp256k1 Source # 
Instance details

Defined in Tendermint.SDK.Crypto

type PubKey Secp256k1 Source # 
Instance details

Defined in Tendermint.SDK.Crypto

type PubKey Secp256k1 = PubKey
type PrivateKey Secp256k1 Source # 
Instance details

Defined in Tendermint.SDK.Crypto

type PrivateKey Secp256k1 = SecKey
type Signature Secp256k1 Source # 
Instance details

Defined in Tendermint.SDK.Crypto

type Signature Secp256k1 = Sig
type Message Secp256k1 Source # 
Instance details

Defined in Tendermint.SDK.Crypto

type Message Secp256k1 = Digest SHA256