package
0.0.0-20250110235132-9a64979de632
Repository: https://github.com/renegade-fi/golang-sdk.git
Documentation: pkg.go.dev

# Functions

CombineShares combines two wallet shares into a single wallet share.
DeriveKeychain derives the keychain from the private key.
DeriveWalletID derives the wallet ID from the private key.
DeriveWalletSecrets derives the wallet secrets from the given Ethereum private key.
DeriveWalletSeeds derives the blinder and secret share seeds from the derivation key.
EmptyWalletShare creates a new wallet share with all zero values.
FixedPointFromFloat creates a new fixed point number from a float.
FromScalarsRecursive is a helper function to deserialize a struct from a slice of scalars using reflection.
HashScalars hashes a slice of scalars using Poseidon2.
NewBalance creates a new balance with the given mint and amount.
NewBalanceBuilder creates a new BalanceBuilder.
NewEmptyBalance creates a new balance with all zero values.
NewEmptyOrder creates a new empty order.
NewEmptyWallet creates a new empty wallet.
NewEmptyWalletFromSecrets creates a new wallet from the given wallet secrets.
NewFixedPoint creates a new fixed point number from a scalar representation.
NewOrder creates a new order.
NewOrderBuilder creates a new OrderBuilder.
NewScalarIterator creates a new ScalarIterator.
RandomScalar generates a random scalar.
ToScalarsRecursive is a helper function to serialize a value to a slice of scalars using reflection.
ZeroFixedPoint is the fixed point number 0.

# Constants

Buy is the buy side of an order.
MaxBalances is the maximum number of balances in a wallet.
MaxOrders is the maximum number of orders in a wallet.
nolint:revive.
nolint:revive.
Sell is the sell side of an order.

# Structs

Balance is a balance in the Renegade system.
BalanceBuilder is a builder for Balance.
FeeEncryptionKey is a public encryption key on the Baby Jubjub curve We represent the key in coordinate form with scalar values.
FixedPoint is a fixed point number with a scalar representation The scalar represents the value `floor(repr >> 2^PRECISION)` For our purposes, the precision is 63 bits.
Keychain is a keychain for the API wallet.
Order is an order in the Renegade system.
OrderBuilder is a builder for Order.
PrivateKeychain is a private keychain for the API wallet.
PublicKeychain is a public keychain for the API wallet.
ScalarIterator is a helper type that iterates over a slice of scalars.
Wallet is a wallet in the Renegade system.
WalletSecrets contains the information about a wallet necessary to recover it.
WalletShare represents a secret share of a wallet, containing only the elements of a wallet that are stored on-chain.

# Interfaces

ScalarSerialize is an interface that can be implemented by any type that can be serialized to a slice of Scalars.

# Type aliases

HmacKey is a symmetric key for HMAC-SHA256.
OrderSide is an enum for the side of an order.
PrivateSigningKey is a private key over the secp256k1 curve.
PublicSigningKey is a verification key over the secp256k1 curve.
Scalar is a scalar field element from the bn254 curve.
Uint64 is a type that can be serialized to a slice of `Scalar`s.