tree_ecdh

package
v0.0.0-...-f54354b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeypair

func GenerateKeypair() (privateKey *big.Int, publicKey ec.ElCPoint, err error)

func GenerateSharedSecret

func GenerateSharedSecret(privateKey *big.Int, publicKey ec.ElCPoint) *big.Int

func GenerateTreeKeypair

func GenerateTreeKeypair(nodes []*TreeNode) (*big.Int, error)

Types

type TreeNode

type TreeNode struct {
	PrivateKey *big.Int
	PublicKey  ec.ElCPoint
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL