Preparing search index...
The search index is not available
@eigen-secret/core
@eigen-secret/core
joinsplit
JoinSplitCircuit
Class JoinSplitCircuit
Hierarchy
JoinSplitCircuit
Index
Constructors
constructor
Properties
PROOF_
ID_
TYPE_
DEPOSIT
PROOF_
ID_
TYPE_
INVALID
PROOF_
ID_
TYPE_
SEND
PROOF_
ID_
TYPE_
WITHDRAW
Methods
calculate
Nullifier
calculate
Signature
create
Deposit
Input
create
Proof
Input
fake
Note
hash
Msg
Constructors
constructor
new
Join
Split
Circuit
(
)
:
JoinSplitCircuit
Returns
JoinSplitCircuit
Properties
Static
Readonly
PROOF_
ID_
TYPE_
DEPOSIT
PROOF_
ID_
TYPE_
DEPOSIT
:
number
= 1
Static
Readonly
PROOF_
ID_
TYPE_
INVALID
PROOF_
ID_
TYPE_
INVALID
:
number
= 0
Static
Readonly
PROOF_
ID_
TYPE_
SEND
PROOF_
ID_
TYPE_
SEND
:
number
= 3
Static
Readonly
PROOF_
ID_
TYPE_
WITHDRAW
PROOF_
ID_
TYPE_
WITHDRAW
:
number
= 2
Methods
Static
calculate
Nullifier
calculate
Nullifier
(
eddsa
:
any
, nc
:
bigint
, inputNoteInUse
:
bigint
, nk
:
SigningKey
)
:
Promise
<
any
>
Parameters
eddsa:
any
nc:
bigint
inputNoteInUse:
bigint
nk:
SigningKey
Returns
Promise
<
any
>
Static
calculate
Signature
calculate
Signature
(
accountKey
:
SigningKey
, nf1
:
bigint
, nf2
:
bigint
, outputNc1
:
bigint
, outputNc2
:
bigint
, publicOwner
:
bigint
, publicValue
:
bigint
)
:
Promise
<
any
>
Parameters
accountKey:
SigningKey
nf1:
bigint
nf2:
bigint
outputNc1:
bigint
outputNc2:
bigint
publicOwner:
bigint
publicValue:
bigint
Returns
Promise
<
any
>
Static
create
Deposit
Input
create
Deposit
Input
(
eddsa
:
any
, accountKey
:
SigningKey
, signingKey
:
SigningKey
, acStateKey
:
bigint
, proofId
:
number
, aliasHash
:
bigint
, assetId
:
number
, publicAssetId
:
number
, publicValue
:
bigint
, publicOwner
:
undefined
|
EigenAddress
, noteRecipent
:
EigenAddress
, confirmedAndPendingInputNotes
:
Note
[]
, accountRequired
:
boolean
)
:
Promise
<
JoinSplitInput
[]
>
Parameters
eddsa:
any
accountKey:
SigningKey
signingKey:
SigningKey
acStateKey:
bigint
proofId:
number
aliasHash:
bigint
assetId:
number
publicAssetId:
number
publicValue:
bigint
publicOwner:
undefined
|
EigenAddress
noteRecipent:
EigenAddress
confirmedAndPendingInputNotes:
Note
[]
accountRequired:
boolean
Returns
Promise
<
JoinSplitInput
[]
>
Static
create
Proof
Input
create
Proof
Input
(
eddsa
:
any
, accountKey
:
SigningKey
, signingKey
:
SigningKey
, acStateKey
:
bigint
, proofId
:
number
, aliasHash
:
bigint
, assetId
:
number
, publicAssetId
:
number
, publicValue
:
bigint
, publicOwner
:
undefined
|
EigenAddress
, recipientPrivateOutput
:
bigint
, noteRecipent
:
EigenAddress
, confirmedAndPendingInputNotes
:
Note
[]
, accountRequired
:
boolean
)
:
Promise
<
JoinSplitInput
[]
>
Parameters
eddsa:
any
accountKey:
SigningKey
signingKey:
SigningKey
acStateKey:
bigint
proofId:
number
aliasHash:
bigint
assetId:
number
publicAssetId:
number
publicValue:
bigint
publicOwner:
undefined
|
EigenAddress
recipientPrivateOutput:
bigint
noteRecipent:
EigenAddress
confirmedAndPendingInputNotes:
Note
[]
accountRequired:
boolean
Returns
Promise
<
JoinSplitInput
[]
>
Static
fake
Note
fake
Note
(
F
:
any
, owner
:
EigenAddress
, assetId
:
number
, index
:
bigint
)
:
Note
Parameters
F:
any
owner:
EigenAddress
assetId:
number
index:
bigint
Returns
Note
Static
hash
Msg
hash
Msg
(
nc1
:
any
, nc2
:
any
, outputNote1
:
any
, outputNote2
:
any
, publicOwner
:
any
, publicValue
:
any
)
:
Promise
<
any
>
Parameters
nc1:
any
nc2:
any
outputNote1:
any
outputNote2:
any
publicOwner:
any
publicValue:
any
Returns
Promise
<
any
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
PROOF_
ID_
TYPE_
DEPOSIT
PROOF_
ID_
TYPE_
INVALID
PROOF_
ID_
TYPE_
SEND
PROOF_
ID_
TYPE_
WITHDRAW
calculate
Nullifier
calculate
Signature
create
Deposit
Input
create
Proof
Input
fake
Note
hash
Msg
@eigen-
secret/core
account
Account
Circuit
Eigen
Address
Secret
Account
Signing
Key
IKey
compress
decrypt
Notes
raw
Compress
aes
Aes256gcm
error
Err
Code
App
Resp
err
Resp
succ
Resp
joinsplit
Join
Split
Circuit
Join
Split
Input
note
Note
State
Note
prover
Proof
State
Prover
sdk
SecretSDK
spongposeidon
poseidon
Sponge
statetree
State
Tree
State
Tree
Circuit
Input
default
N_
LEVEL
get
Hashes
pad
siblings
Pad
transaction
Transaction
Model
Status
Transaction
Tx
Data
updatestate
Update
Status
Circuit
Update
Status
Input
utils
Proof
ETH
SESSION_
DURATION
__DEFAULT_
ALIAS__
raw
Message
array
Chunk
big
Int
Array2
Buffer
bigint2
Array
bigint2
Tuple
bigint2
Uint8
Array
bigint
Array2
Bits
bit
Array2
Buffer
bits2
Bignum
bits2
NumBE
execute
Circuit
get
Strided
Bigint
get
Witness
Array
get
Witness
Buffer
get
Witness
Map
get
Witness
Value
has
Value
index
normalize
Alias
parse
Proof
path
Join
prepare
Json
require
Env
Variables
signEOASignature
uint8
Array2
Bigint
verifyEOASignature
Generated using
TypeDoc