Module

Network.Ethereum.Web3.Solidity.Bytes

Package
purescript-web3
Repository
f-o-a-m/purescript-web3

#BytesN Source

newtype BytesN (n :: DigitList)

See module Network.Ethereum.Web3.Solidity.Sizes for some predefined sizes.

Instances

#unBytesN Source

unBytesN :: forall n. KnownSize n => BytesN n -> ByteString

Access the underlying raw bytestring

#proxyBytesN Source

proxyBytesN :: forall n. KnownSize n => BytesN n

#update Source

update :: forall n. KnownSize n => BytesN n -> ByteString -> BytesN n

#fromByteString Source

fromByteString :: forall n. KnownSize n => DLProxy n -> ByteString -> Maybe (BytesN n)

Attempt to coerce a bytestring into one of the appropriate size. See module Network.Ethereum.Web3.Solidity.Sizes for some predefined sizes.