gini-core-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Gini.Core.Types.Block

Description

Block definitions

Synopsis

Documentation

data BlockHash #

Instances
Eq BlockHash 
Instance details

Defined in Gini.Crypto.Hash

Show BlockHash 
Instance details

Defined in Gini.Crypto.Hash

NFData BlockHash 
Instance details

Defined in Gini.Crypto.Hash

Methods

rnf :: BlockHash -> () #

Display BlockHash 
Instance details

Defined in Gini.Crypto.Hash

Methods

display :: BlockHash -> Utf8Builder

textDisplay :: BlockHash -> Text

ByteArrayAccess BlockHash 
Instance details

Defined in Gini.Crypto.Hash

Methods

length :: BlockHash -> Int #

withByteArray :: BlockHash -> (Ptr p -> IO a) -> IO a #

copyByteArrayToPtr :: BlockHash -> Ptr p -> IO () #

Validity BlockHash 
Instance details

Defined in Gini.Crypto.Hash

Methods

validate :: BlockHash -> Validation

Persist BlockHash 
Instance details

Defined in Gini.Crypto.Hash

Methods

put :: BlockHash -> Put ()

get :: Get BlockHash

PersistField BlockHash 
Instance details

Defined in Gini.Crypto.Hash

Methods

toPersistValue :: BlockHash -> PersistValue

fromPersistValue :: PersistValue -> Either Text BlockHash

PersistFieldSql BlockHash 
Instance details

Defined in Gini.Crypto.Hash

Methods

sqlType :: Proxy BlockHash -> SqlType

data Signature #

Instances
Eq Signature 
Instance details

Defined in Gini.Crypto.PubKey

Show Signature 
Instance details

Defined in Gini.Crypto.PubKey

NFData Signature 
Instance details

Defined in Gini.Crypto.PubKey

Methods

rnf :: Signature -> () #

Display Signature 
Instance details

Defined in Gini.Crypto.PubKey

Methods

display :: Signature -> Utf8Builder

textDisplay :: Signature -> Text

ByteArrayAccess Signature 
Instance details

Defined in Gini.Crypto.PubKey

Methods

length :: Signature -> Int #

withByteArray :: Signature -> (Ptr p -> IO a) -> IO a #

copyByteArrayToPtr :: Signature -> Ptr p -> IO () #

Validity Signature 
Instance details

Defined in Gini.Crypto.PubKey

Methods

validate :: Signature -> Validation

Persist Signature 
Instance details

Defined in Gini.Crypto.PubKey

Methods

put :: Signature -> Put ()

get :: Get Signature

PersistField Signature 
Instance details

Defined in Gini.Crypto.PubKey

Methods

toPersistValue :: Signature -> PersistValue

fromPersistValue :: PersistValue -> Either Text Signature

PersistFieldSql Signature 
Instance details

Defined in Gini.Crypto.PubKey

Methods

sqlType :: Proxy Signature -> SqlType

data ProofOfWork #

Proof of work nonce

Instances
Eq ProofOfWork # 
Instance details

Defined in Gini.Core.Protocol.Types.Block.Internal

Show ProofOfWork # 
Instance details

Defined in Gini.Core.Protocol.Types.Block.Internal

Generic ProofOfWork # 
Instance details

Defined in Gini.Core.Protocol.Types.Block.Internal

Associated Types

type Rep ProofOfWork :: * -> * #

NFData ProofOfWork # 
Instance details

Defined in Gini.Core.Protocol.Types.Block.Internal

Methods

rnf :: ProofOfWork -> () #

Validity ProofOfWork # 
Instance details

Defined in Gini.Core.Protocol.Types.Block.Internal

Methods

validate :: ProofOfWork -> Validation

PersistField ProofOfWork # 
Instance details

Defined in Gini.Core.Protocol.Types.Block.Internal

Methods

toPersistValue :: ProofOfWork -> PersistValue

fromPersistValue :: PersistValue -> Either Text ProofOfWork

PersistFieldSql ProofOfWork # 
Instance details

Defined in Gini.Core.Protocol.Types.Block.Internal

Methods

sqlType :: Proxy ProofOfWork -> SqlType

type Rep ProofOfWork # 
Instance details

Defined in Gini.Core.Protocol.Types.Block.Internal

type Rep ProofOfWork = D1 (MetaData "ProofOfWork" "Gini.Core.Protocol.Types.Block.Internal" "gini-core-0.1.0.0-CYC9q60CJ5rDf5hHcbgY0V" True) (C1 (MetaCons "ProofOfWork" PrefixI True) (S1 (MetaSel (Just "unProofOfWork") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Word64)))