contents of zip

This commit is contained in:
transatoshi
2024-12-20 18:08:44 -08:00
parent aeb2b99db7
commit f03ed73d2b
261 changed files with 208197 additions and 0 deletions

89
scripts/proof_builder.js Executable file
View File

@@ -0,0 +1,89 @@
// Use strict
"use strict";
// Classes
// Proof builder class
class ProofBuilder {
// Public
// Initialize
initialize(extendedPrivateKey) {
// Return promise
return new Promise(function(resolve, reject) {
// Reject error
reject("Not implemented.");
});
}
// Uninitialize
uninitialize() {
// Throw error
throw "Not implemented.";
}
// Rewind nonce
rewindNonce(commit) {
// Return promise
return new Promise(function(resolve, reject) {
// Reject error
reject("Not implemented.");
});
}
// Private nonce
privateNonce(commit) {
// Return promise
return new Promise(function(resolve, reject) {
// Reject error
reject("Not implemented.");
});
}
// Proof message
proofMessage(identifier, switchType) {
// Throw error
throw "Not implemented.";
}
// Get output
getOutput(extendedPrivateKey, amount, commit, message) {
// Return promise
return new Promise(function(resolve, reject) {
// Reject error
reject("Not implemented.");
});
}
// Output identifier index
static get OUTPUT_IDENTIFIER_INDEX() {
// Return output identifier index
return 0;
}
// Output switch type index
static get OUTPUT_SWITCH_TYPE_INDEX() {
// Return output switch type index
return ProofBuilder.OUTPUT_IDENTIFIER_INDEX + 1;
}
}
// Main function
// Set global object's proof builder
globalThis["ProofBuilder"] = ProofBuilder;