network-anonymous-i2p-0.10.0: Haskell API for I2P anonymous networking

Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.Anonymous.I2P.Types.Destination

Description

I2P destination related types

Synopsis

Documentation

class Destination a where Source

Interface for any destination

Methods

asByteString :: a -> ByteString Source

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 and can be converted to a ByteString.

Destination PublicDestination

A public destination is a Destination and can be converted to a ByteString.

class Connectable a Source

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 Source

An I2P destination we can accept connections from.

Instances

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.

Instances

Eq PublicDestination 
Show PublicDestination 
Connectable PublicDestination

We can connect to a public destination

Destination PublicDestination

A public destination is a Destination and can be converted to a ByteString.

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.

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 Destination and can be converted to a ByteString.

data SignatureType Source

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