Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyCommandSignature ¶
VerifyCommandSignature verifies that a command has a valid signature.
Types ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer handles signing commands using an Ed25519 private key.
func NewSigner ¶
NewSigner creates a new Signer instance from a hex-encoded Ed25519 private key.
The private key seed must be a valid 32-byte seed encoded as a hex string. This is used to derive the full Ed25519 private key for signing operations. The rng seed is used for deterministic salt generation with math/rand.
func (*Signer) GetSignerAddress ¶
func (*Signer) SignCommand ¶
func (s *Signer) SignCommand(commandBody *iscv1.CommandBody, mode iscv1.AuthInfo_AuthMode) (*iscv1.Command, error)
SignCommand signs a command body to produce a signed command that can be verified.
Click to show internal directories.
Click to hide internal directories.