Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
I2P destination related types
- class Destination a where
- asByteString :: a -> ByteString
- class Connectable a
- class Acceptable a
- data PublicDestination = PublicDestination ByteString
- data PrivateDestination = PrivateDestination ByteString
- data SignatureType
Documentation
class Destination a where Source
Interface for any destination
asByteString :: a -> ByteString Source
Any destination should be convertable to a ByteString in order to send it over a socket.
Destination PrivateDestination | A private destination is a |
Destination PublicDestination | A public destination is a |
class Connectable a Source
An I2P destination we can connect to.
Connectable PrivateDestination | We can connect to a private destination |
Connectable PublicDestination | We can connect to a public destination |
class Acceptable a Source
An I2P destination we can accept connections from.
Acceptable PrivateDestination | We can accept connections at a private destination |
data PublicDestination Source
I2P Public destination
A public destination is the base64 representation of the public I2P key of a destination, and should be given out to other people to connect to your host.
Eq PublicDestination | |
Show PublicDestination | |
Connectable PublicDestination | We can connect to a public destination |
Destination PublicDestination | A public destination is a |
data PrivateDestination Source
I2P Private destination
A private destination is the base64 representation of the private I2P key of a destination, and you should keep this address to yourself. It can be used to accepts connections, and as such, if you give this private destination out to others, you are effectively giving them the ability to MITM you.
Eq PrivateDestination | |
Show PrivateDestination | |
Acceptable PrivateDestination | We can accept connections at a private destination |
Connectable PrivateDestination | We can connect to a private destination |
Destination PrivateDestination | A private destination is a |
data SignatureType Source
Supported signature types by I2P, as defined at I2P Common Structure Documentation
DsaSha1 | DSA_SHA1 -- the default, and supported by all I2P versions |
EcdsaSha256P256 | ECDSA_SHA256_P256, supported by version 0.9.12 and up |
EcdsaSha384P384 | ECDSA_SHA384_P384, supported by version 0.9.12 and up |
EcdsaSha512P521 | ECDSA_SHA512_P521, supported by version 0.9.12 and up |
RsaSha2562048 | RSA_SHA256_2048, supported by version 0.9.12 and up |
RsaSha3843072 | RSA_SHA384_3072, supported by version 0.9.12 and up |
RsaSha5124096 | RSA_SHA512_4096, supported by version 0.9.12 and up |
EdDsaSha512Ed25519 | EdDSA_SHA512_Ed25519, supported by version 0.9.15 and up |