Documentation
¶
Index ¶
Constants ¶
View Source
const Namespace = "proof-of-possession@com.github.serverless-ssh-ca.andrewheberle"
The namespace used for signing the proof
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proof ¶
type Proof struct {
// contains filtered or unexported fields
}
func Generate ¶
Generate creates a proof by signing the current timestamp using SSHSIG and the public key fingerprint with the provided signer.
The proof is returned as a string in the format: <timestamp>.<fingerprint>.<base64 armored_signature>
func Parse ¶
Parse takes a proof string and validates it is in the expected format, returning a Proof struct if valid.
func (Proof) MarshalJSON ¶
MarshalJSON returns the proof data as a JSON string
Click to show internal directories.
Click to hide internal directories.