Network.CCNx.Messages
- data Message
- data ContentObject = ContentObject Signature Name SignedInfo Content
- type Content = ByteString
- type Name = [Component]
- type Component = String
- data SignedInfo = SignedInfo PublisherPublicKeyDigest Timestamp (Maybe Type) (Maybe FreshnessSeconds) (Maybe FinalBlockID) (Maybe KeyLocator)
- data Interest = Interest Name (Maybe MinSuffixComponents) (Maybe MaxSuffixComponents) (Maybe PublisherID) (Maybe Exclude) (Maybe ChildSelector) (Maybe AnswerOriginKind) (Maybe Scope) (Maybe Nonce)
- type PublisherPublicKeyDigest = String
- data Exclude = Exclude (Maybe AnyBloom) [(Component, Maybe AnyBloom)]
- data AnyBloom
- type ChildSelector = Int
- type AnswerOriginKind = Int
- type Scope = Int
- type Nonce = String
- type MinSuffixComponents = Int
- type MaxSuffixComponents = Int
- type Timestamp = Word16
- type FreshnessSeconds = Int
- type FinalBlockID = String
- data Type
- data KeyLocator
- = Key String
- | Certificate String
- | KeyName Name (Maybe PublisherID)
- data Signature = Signature (Maybe DigestAlgorithm) (Maybe Witness) SignatureBits
- type DigestAlgorithm = String
- type Witness = String
- type SignatureBits = String
- data PublisherID
Documentation
The two types of CCNx messages.
Constructors
| ContentObjectMessage ContentObject | |
| InterestMessage Interest |
data ContentObject Source
Constructors
| ContentObject Signature Name SignedInfo Content |
type Content = ByteStringSource
data SignedInfo Source
Constructors
| SignedInfo PublisherPublicKeyDigest Timestamp (Maybe Type) (Maybe FreshnessSeconds) (Maybe FinalBlockID) (Maybe KeyLocator) |
Constructors
| Interest Name (Maybe MinSuffixComponents) (Maybe MaxSuffixComponents) (Maybe PublisherID) (Maybe Exclude) (Maybe ChildSelector) (Maybe AnswerOriginKind) (Maybe Scope) (Maybe Nonce) |
type ChildSelector = IntSource
type AnswerOriginKind = IntSource
type MinSuffixComponents = IntSource
type MaxSuffixComponents = IntSource
type FreshnessSeconds = IntSource
type FinalBlockID = StringSource
data KeyLocator Source
Constructors
| Key String | |
| Certificate String | |
| KeyName Name (Maybe PublisherID) |
Constructors
| Signature (Maybe DigestAlgorithm) (Maybe Witness) SignatureBits |
type DigestAlgorithm = StringSource
type SignatureBits = StringSource