Documentation ¶
Index ¶
- func DecryptB64(ctx context.Context, g *libkb.GlobalContext, teamID keybase1.TeamID, ...) (res stellar1.RelayContents, err error)
- func GetKey(ctx context.Context, g *libkb.GlobalContext, recipient stellarcommon.Recipient) (key keybase1.TeamApplicationKey, teamID keybase1.TeamID, err error)
- type Input
- type Output
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptB64 ¶
func DecryptB64(ctx context.Context, g *libkb.GlobalContext, teamID keybase1.TeamID, boxB64 string) (res stellar1.RelayContents, err error)
`boxB64` should be a stellar1.EncryptedRelaySecret
func GetKey ¶
func GetKey(ctx context.Context, g *libkb.GlobalContext, recipient stellarcommon.Recipient) (key keybase1.TeamApplicationKey, teamID keybase1.TeamID, err error)
Get the key used to encrypt the stellar key for a relay transfer A key from the implicit team betwen the logged-in user and `to`. If `generation` is nil, gets the latest key.
Types ¶
type Input ¶
type Input struct { From stellar1.SecretKey AmountXLM string Note string // Implicit-team key to encrypt for EncryptFor keybase1.TeamApplicationKey SeqnoProvider build.SequenceProvider }
type Output ¶
type Output struct { // Account ID of the shared account. RelayAccountID stellar1.AccountID // Encrypted box containing the secret key to the account. EncryptedB64 string FundTx stellarnet.SignResult }
Click to show internal directories.
Click to hide internal directories.