mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 18:37:26 +08:00
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete * 2.1.0 main node rollup
12 lines
377 B
Go
12 lines
377 B
Go
package onion
|
|
|
|
// KeyFn generates an ephemeral keypair used for key agreement.
|
|
type KeyFn func() (ephemeralPub []byte, ephemeralPriv []byte, err error)
|
|
|
|
// SharedSecretFn derives a DH shared secret using our ephemeral secret and the
|
|
// peer's long-term onion public key.
|
|
type SharedSecretFn func(ephemeralPriv []byte, peerOnionPub []byte) (
|
|
sharedSecret []byte,
|
|
err error,
|
|
)
|