Documentation
¶
Index ¶
Constants ¶
View Source
const (
// SCOPE_SEPARATOR ...
SCOPE_SEPARATOR = "§"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type Destination struct { Purposes []purpose.Purpose `json:"purposes"` Scopes []string `json:"scopes"` }
Destination ...
type Scope ¶
type Scope struct { // Type is an available scope type, eg. `ScopeType{Code: "f1", Name: "SIRET"}` Type scope.Type // Value is the base64-encoded encryption of the actual corresponding value with the stakeholder's private key. Value string }
Scope ...
func ToScope ¶
func ToScope(st scope.Type, rawValue string, beneficiaryPrivateKey string, emitterPrivateKey string) (s Scope, err error)
ToScope returns the Scope to add to the list of scopes written in the scope field using the passed raw value (eg. 522974591) of the corresponding scope type with both signers' private keys. The final format of the field is the following: <scopeType.code><beneficiaryObfuscation>§<emitterObfuscation>, the obfuscation using the Obfuscator cipher from the Crumbl™ library, then encoding its result in Base64 (without the trailing equal signs), eg. `0xf00xMQUOAF9cWAUIVg§YFVWVQ0NWllTAg`
func (*Scope) GetRawValue ¶
GetRawValue returns the underlying value in clear.
Click to show internal directories.
Click to hide internal directories.