Documentation
¶
Overview ¶
Package session provides an onion message type that delivers the two session private keys to be associated with a session, for which the hash of the secrets was used as the payment preimage for starting a session.
Topping up sessions does not require following up with this message as the handler finds the session and adjusts the balance according to the payment.
Index ¶
- Constants
- func NewSession(hop byte) (x ont.Onion)
- type Session
- func (x *Session) Account(res *sess.Data, sm *sess.Manager, s *sessions.Data, last bool) (skip bool, sd *sessions.Data)
- func (x *Session) Decode(s *splice.Splice) (e error)
- func (x *Session) Encode(s *splice.Splice) (e error)
- func (x *Session) GetOnion() interface{}
- func (x *Session) Handle(s *splice.Splice, p ont.Onion, ng ont.Ngin) (e error)
- func (x *Session) Len() int
- func (x *Session) Magic() string
- func (x *Session) PreimageHash() sha256.Hash
- func (x *Session) Wrap(inner ont.Onion)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func NewSession ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.