parser

package
v1.999.16 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecryptedKeyableBlob

type DecryptedKeyableBlob struct {
	Env                  KeyableEnv
	SubEnv               KeyableEnv
	Locals               KeyableEnv
	InheritanceOverrides InheritanceOverrides
}

type DecryptedResponse

type DecryptedResponse struct {
	*DecryptedKeyableBlob
	DecryptedBlocks []*DecryptedKeyableBlob
}

type FetchResponse

type FetchResponse struct {
	*KeyableBlob
	OrgId                  string                   `json:"orgId"`
	EncryptedPrivkey       *crypto.EncryptedData    `json:"encryptedPrivkey"`
	Pubkey                 *crypto.Pubkey           `json:"pubkey"`
	SignedTrustedRoot      *crypto.SignedData       `json:"signedTrustedRoot"`
	Blocks                 []*KeyableBlob           `json:"blocks,omitempty"`
	RootPubkeyReplacements []*RootPubkeyReplacement `json:"rootPubkeyReplacements,omitempty"`
}

func (*FetchResponse) Parse

func (response *FetchResponse) Parse(encryptionKey string) (string, *crypto.Privkey, *crypto.SignedData, []string, error)

type InheritanceOverrides

type InheritanceOverrides map[string]KeyableEnv

type InheritanceOverridesBlobs

type InheritanceOverridesBlobs map[string]KeyableBlobFields

type KeyableBlob

type KeyableBlob struct {
	Env                  *KeyableBlobFields        `json:"env,omitempty"`
	SubEnv               *KeyableBlobFields        `json:"subEnv,omitempty"`
	Locals               *KeyableBlobFields        `json:"locals,omitempty"`
	InheritanceOverrides InheritanceOverridesBlobs `json:"inheritanceOverrides,omitempty"`
}

type KeyableBlobFields

type KeyableBlobFields struct {
	EncryptedEnv          *crypto.EncryptedData `json:"encryptedEnv"`
	EncryptedKey          *crypto.EncryptedData `json:"encryptedKey"`
	EncryptedByPubkeyId   string                `json:"encryptedByPubkeyId"`
	EncryptedByPubkey     *crypto.Pubkey        `json:"encryptedByPubkey"`
	EncryptedByTrustChain *crypto.SignedData    `json:"encryptedByTrustChain"`
}

type KeyableBlobFieldsWithTrustChain

type KeyableBlobFieldsWithTrustChain struct {
	*KeyableBlobFields
	DecryptedPrivkey     *crypto.Privkey
	TrustedKeyablesChain *trust.TrustedKeyablesChain
	Signer               *trust.Signer
}

type KeyableEnv

type KeyableEnv map[string]*KeyableEnvVal

type KeyableEnvVal

type KeyableEnvVal struct {
	Val                   string `json:"val,omitempty"`
	InheritsEnvironmentId string `json:"inheritsEnvironmentId,omitempty"`
}

type KeyableRawEnv

type KeyableRawEnv map[string]interface{}

type ResponseWithKeys

type ResponseWithKeys struct {
	RootKeys
	Response *FetchResponse
}

type ResponseWithTrustChains

type ResponseWithTrustChains struct {
	*KeyableBlobWithTrustChains
	BlocksWithTrustChain []*KeyableBlobWithTrustChains
	ResponseWithKeys     *ResponseWithKeys
}

type RootKeys

type RootKeys struct {
	DecryptedPrivkey *crypto.Privkey
	VerifiedPubkey   *crypto.Pubkey
}

type RootPubkeyReplacement

type RootPubkeyReplacement struct {
	Id                        string             `json:"id"`
	ReplacingPubkeyId         string             `json:"replacingPubkeyId"`
	ReplacingPubkey           *crypto.Pubkey     `json:"replacingPubkey"`
	SignedReplacingTrustChain *crypto.SignedData `json:"signedReplacingTrustChain"`
}

Jump to

Keyboard shortcuts

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