| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Gini.Core.Types.Account
Description
Block definitions
Synopsis
- newtype Account = Account {}
- accountLength :: Int
- zeroAccount :: Account
- newtype Representative = Representative {}
- newtype AccountAddress = AccountAddress {}
- toAccountAddress :: Account -> AccountAddress
- fromAccountAddress :: AccountAddress -> Either String Account
- accountAddressPrefix :: ShortByteString
Documentation
Instances
| Eq Account # | |
| Show Account # | |
| IsString Account # | |
Defined in Gini.Core.Types.Account Methods fromString :: String -> Account # | |
| Display Account # | |
Defined in Gini.Core.Types.Account | |
| ByteArrayAccess Account # | |
| Validity Account # | |
Defined in Gini.Core.Types.Account | |
| Persist Account # | |
Defined in Gini.Core.Types.Account | |
| PersistField Account # | |
Defined in Gini.Core.Types.Account Methods toPersistValue :: Account -> PersistValue fromPersistValue :: PersistValue -> Either Text Account | |
| PersistFieldSql Account # | |
Defined in Gini.Core.Types.Account | |
accountLength :: Int #
zeroAccount :: Account #
This is known as a Burn acccount. It is a public key with all zeros in it.
newtype Representative #
Constructors
| Representative | |
Fields | |
Instances
newtype AccountAddress #
Public key of an account
Constructors
| AccountAddress | |
Fields | |
Instances
toAccountAddress :: Account -> AccountAddress #
Construct an account address from a public key
