Documentation ¶
Index ¶
- type Certificate
- type CertificateData
- type CertifiedSignedData
- type Controller
- type Identity
- type KeyPair
- type PublicKey
- type Runner
- type SignedData
- type Signer
- type Store
- func (s *Store) CertifiedSign(data []byte) (CertifiedSignedData, error)
- func (s *Store) NewGetCertificateRequest() (v1.GetCertificationRequest, error)
- func (s *Store) SetCertificate(cert Certificate, controllerVerifier Verifier) error
- func (s *Store) SignCertificateRequest(req *v1.GetCertificationRequest) (Certificate, error)
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶ added in v0.376.0
type Certificate struct {
SignedData
}
func NewCertificate ¶ added in v0.376.0
func NewCertificate(cert *ftlv1.Certificate) (Certificate, error)
func (Certificate) String ¶ added in v0.376.0
func (c Certificate) String() string
type CertificateData ¶ added in v0.376.0
func (CertificateData) String ¶ added in v0.376.0
func (c CertificateData) String() string
type CertifiedSignedData ¶ added in v0.376.0
type CertifiedSignedData struct { Certificate Certificate SignedData SignedData }
CertifiedSignedData is sent by a node and proves identity based on a certificate.
func (CertifiedSignedData) String ¶ added in v0.376.0
func (c CertifiedSignedData) String() string
type Controller ¶ added in v0.376.0
type Controller struct{}
func NewController ¶ added in v0.376.0
func NewController() Controller
func (Controller) String ¶ added in v0.376.0
func (c Controller) String() string
type KeyPair ¶
type KeyPair struct {
// contains filtered or unexported fields
}
func GenerateKeyPair ¶ added in v0.376.0
GenerateKeyPair creates a new key pair using Tink's ED25519 key template
func NewKeyPair ¶ added in v0.376.0
type PublicKey ¶ added in v0.376.0
type PublicKey struct {
Bytes []byte
}
func NewPublicKey ¶ added in v0.376.0
type Runner ¶ added in v0.376.0
Runner identity TODO: Maybe use KeyType[T any, TP keyPayloadConstraint[T]]?
type SignedData ¶
type SignedData struct { Signature []byte // contains filtered or unexported fields }
func NewSignedData ¶ added in v0.376.0
func NewSignedData(verifier Verifier, data, signature []byte) (SignedData, error)
NewSignedData ensures that the data is signed correctly.
type Store ¶ added in v0.376.0
type Store struct { Identity Identity KeyPair KeyPair Signer Signer Certificate optional.Option[Certificate] ControllerVerifier optional.Option[Verifier] }
Store is held by a node and contains the node's identity, key pair, signer, and certificate.
func NewStoreNewKeys ¶ added in v0.376.0
func (*Store) CertifiedSign ¶ added in v0.376.0
func (s *Store) CertifiedSign(data []byte) (CertifiedSignedData, error)
func (*Store) NewGetCertificateRequest ¶ added in v0.376.0
func (s *Store) NewGetCertificateRequest() (v1.GetCertificationRequest, error)
func (*Store) SetCertificate ¶ added in v0.376.0
func (s *Store) SetCertificate(cert Certificate, controllerVerifier Verifier) error
func (*Store) SignCertificateRequest ¶ added in v0.376.0
func (s *Store) SignCertificateRequest(req *v1.GetCertificationRequest) (Certificate, error)
Click to show internal directories.
Click to hide internal directories.