testingcommon

package
v0.0.0-...-836e728 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPayload

func ExtractPayload(response *httpo.ApiResponse, out interface{})

Converts map created by json decoder to struct out should be pointer (&payload)

func GetPasetoForTestUser

func GetPasetoForTestUser(walletAddr string, expiration time.Duration) (string, error)

Returns paseto token for given wallet address and with expiration, only use in tests

Types

type TestWallet

type TestWallet struct {
	PrivKey       *secp256k1.PrivKey
	WalletAddress string
}

func GenerateWallet

func GenerateWallet() TestWallet

Jump to

Keyboard shortcuts

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