internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package internal declares a Raw private key type, only available for use in the keystore sub-tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(raw Raw) []byte

Bytes is a func for accessing the internal bytes field of Raw. It is not declared as a method, because that would allow access from callers which cannot otherwise access this internal package.

func RawBytes

func RawBytes(key interface{ Raw() Raw }) []byte

RawBytes is a helper to use Bytes with keys that have a Raw() method.

Types

type Raw

type Raw struct {
	// contains filtered or unexported fields
}

Raw is a wrapper type that holds private key bytes and is designed to prevent accidental logging. The only way to access the internal bytes (without reflection) is to use Bytes, which is only available to ancestor packages of the parent keystore/ directory.

func NewRaw

func NewRaw(b []byte) Raw

func (Raw) GoString

func (raw Raw) GoString() string

func (Raw) String

func (raw Raw) String() string

Jump to

Keyboard shortcuts

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