| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Network.Anonymous.I2P.Types.Destination
Description
I2P destination related types
- class Destination a where
- class Connectable a
- class Acceptable a
- data PublicDestination = PublicDestination ByteString
- data PrivateDestination = PrivateDestination ByteString
- data SignatureType
Documentation
class Destination a where #
Interface for any destination
Minimal complete definition
Methods
asByteString :: a -> ByteString #
Any destination should be convertable to a ByteString in order to send it over a socket.
Instances
| Destination PrivateDestination # | A private destination is a |
| Destination PublicDestination # | A public destination is a |
class Connectable a #
An I2P destination we can connect to.
Instances
| Connectable PrivateDestination # | We can connect to a private destination |
| Connectable PublicDestination # | We can connect to a public destination |
class Acceptable a #
An I2P destination we can accept connections from.
Instances
| Acceptable PrivateDestination # | We can accept connections at a private destination |
data PublicDestination #
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.
Constructors
| PublicDestination ByteString |
Instances
| Eq PublicDestination # | |
| Show PublicDestination # | |
| Connectable PublicDestination # | We can connect to a public destination |
| Destination PublicDestination # | A public destination is a |
data PrivateDestination #
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.
Constructors
| PrivateDestination ByteString |
Instances
| 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 #
Supported signature types by I2P, as defined at I2P Common Structure Documentation
Constructors
| 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 |