loopringGoSign

package module
v0.0.0-...-14a0304 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 7 Imported by: 0

README

EDdsa Signature Implementation in Go

Install

Install Golang

Install Xcode Command Line Tools

go install golang.org/x/mobile/cmd/gomobile@latest

wasm

wasm tinygo: v0.30.0 wasm_exec.js from $(tinygo env TINYGOROOT)targets/wasm_exec.js

gomobile init

Build

iOS
gomobile bind -target=ios -o ./ios/loopringGoSign.xcframework

This command will generate a binary according to the target platform.

Drag the binary into project and build.

Android
gomobile bind  -target=android  -o ./android/loopringGoSign.aar

You can find the aar file in the android directory.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PoseidonHash

func PoseidonHash(input string) string

func SignEddsa

func SignEddsa(privateKey string, hash string) string

func SignRequest

func SignRequest(privateKey string, method string, url string, data string) string

Types

This section is empty.

Directories

Path Synopsis
Package ff (generated by goff) contains field arithmetics operations
Package ff (generated by goff) contains field arithmetics operations

Jump to

Keyboard shortcuts

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