bundle

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Advance

func Advance(prevBundle keybase1.StellarBundle) keybase1.StellarBundle

Create the next bundle given a decrypted bundle.

func Decrypt

Decrypt decrypts the stellar key bundle. Does not check invariants.

func Encrypt

Encrypt encrypts the stellar key bundle for the PUK. Returns the encrypted struct and a base64 encoding for posting to the server. Does not check invariants.

func NewInitialBundle

func NewInitialBundle() (res keybase1.StellarBundle, err error)

func Unbox

func Unbox(decodeRes DecodeResult, visibleBundleB64 string,
	puk libkb.PerUserKeySeed) (res keybase1.StellarBundle, version keybase1.StellarBundleVersion, err error)

Unbox decrypts the stellar key bundle. And decodes and verifies the visible bundle. Does not check the prev hash.

Types

type BoxResult

type BoxResult struct {
	Enc           keybase1.EncryptedStellarBundle
	EncB64        string // base64 msgpack'd Enc
	VisB64        string // base64 msgpack'd Vis
	FormatVersion keybase1.StellarBundleVersion
}

func Box

Box encrypts a stellar key bundle for a PUK.

type DecodeResult

type DecodeResult struct {
	Enc     keybase1.EncryptedStellarBundle
	EncHash keybase1.Hash
}

func Decode

func Decode(encryptedBundleB64 string) (res DecodeResult, err error)

Decode decodes but does not decrypt the bundle. Returns `res` which is needed to decrypt and `res.Gen` specifies the decryption PUK.

Jump to

Keyboard shortcuts

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