arbitraryverify

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: 5 Imported by: 0

Documentation

Overview

Package arbitraryverify provides methods to verify signatures signed with Arbitrary message

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComposeArbitraryMsg

func ComposeArbitraryMsg(signer string, data string) ([]byte, error)

ComposeArbitraryMsg Creates SignDoc with JSON encoded bytes as per adr036 Compatible with AMINO as it is supported by keplr wallet

func VerifyArbitraryMsg

func VerifyArbitraryMsg(signer string, msg string, signature []byte, publicKey secp256k1.PubKey) (bool, error)

VerifyArbitraryMsg verifies arbitrary Adr036 message by first composing it with the 0 values required and then verifying it against public key

Types

This section is empty.

Jump to

Keyboard shortcuts

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