suisigntx

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package suisigntx: Transaction signing implementation with Ed25519 cryptographic operations Provides functions to sign SUI blockchain transaction data using private keys Supports both hex-encoded and raw byte format private keys and transaction data Generates Base64-encoded signatures compatible with SUI blockchain requirements

suisigntx: 使用 Ed25519 加密操作的交易签名实现 提供使用私钥签署 SUI 区块链交易数据的函数 支持十六进制编码和原始字节格式的私钥和交易数据 生成与 SUI 区块链要求兼容的 Base64 编码签名

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(privateKeyHex string, txBytesString string) (string, error)

Sign creates a signature from hex-encoded private key and Base64-encoded transaction data Accepts privateKeyHex as hex string and txBytesString as Base64 string Returns Base64-encoded signature or error if signing fails Reference implementation from github.com/ltp456/go-sui-sdk

Sign 从十六进制编码的私钥和 Base64 编码的交易数据创建签名 接受 privateKeyHex 作为十六进制字符串,txBytesString 作为 Base64 字符串 返回 Base64 编码的签名,如果签名失败则返回错误 参考实现来自 github.com/ltp456/go-sui-sdk

func SignTx

func SignTx(privateKey []byte, txBytes []byte) (string, error)

SignTx signs transaction bytes using raw private key bytes Accepts raw private key bytes and transaction data bytes Returns Base64-encoded signature with scheme flag and public key Reference implementation from github.com/ltp456/go-sui-sdk

SignTx 使用原始私钥字节签署交易字节 接受原始私钥字节和交易数据字节 返回带有方案标志和公钥的 Base64 编码签名 参考实现来自 github.com/ltp456/go-sui-sdk

Types

This section is empty.

Jump to

Keyboard shortcuts

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