Movatterモバイル変換


[0]ホーム

URL:


tkatype

package
v1.92.2Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License:BSD-3-ClauseImports:0Imported by:21

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package tkatype defines types for working with the tka package.

Do not add extra dependencies to this package unless they are tiny,because this package encodes wire types that should be lightweight to use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeAUMSigHash

type AUMSigHash [32]byte

AUMSigHash represents the BLAKE2s digest of an Authority UpdateMessage (AUM), sans any signatures.

typeKeyID

type KeyID []byte

KeyID references a verification key stored in the key authority. A keyIDuniquely identifies a key. KeyIDs are all 32 bytes.

For 25519 keys: We just use the 32-byte public key.

Even though this is a 32-byte value, we use a byte slice becauseCBOR-encoded byte slices have a different prefix to CBOR-encoded arrays.Encoding as a byte slice allows us to change the size in the future if weever need to.

typeMarshaledAUM

type MarshaledAUM []byte

MarshaledAUM represents a marshaled tka.AUM.

typeMarshaledSignature

type MarshaledSignature []byte

MarshaledSignature represents a marshaled tka.NodeKeySignature.

typeNKSSigHash

type NKSSigHash [32]byte

NKSSigHash represents the BLAKE2s digest of a Node-Key Signature (NKS),sans the Signature field if present.

typeSignature

type Signature struct {KeyIDKeyID  `cbor:"1,keyasint"`Signature []byte `cbor:"2,keyasint"`}

Signature describes a signature over an AUM, which can be verifiedusing the key referenced by KeyID.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp