disable setupRefreshPlanchet C crypto worker call
This commit is contained in:
parent
5c93f15157
commit
5fbe82b374
@ -608,6 +608,7 @@ export function hashCoinEv(
|
||||
return hashContext.finish();
|
||||
}
|
||||
|
||||
|
||||
const logger = new Logger("talerCrypto.ts");
|
||||
|
||||
export function hashCoinEvInner(
|
||||
@ -682,24 +683,6 @@ export interface FreshCoin {
|
||||
bks: Uint8Array;
|
||||
}
|
||||
|
||||
// export function setupRefreshPlanchet(
|
||||
// secretSeed: Uint8Array,
|
||||
// coinNumber: number,
|
||||
// ): FreshCoin {
|
||||
// const info = stringToBytes("taler-coin-derivation");
|
||||
// const saltArrBuf = new ArrayBuffer(4);
|
||||
// const salt = new Uint8Array(saltArrBuf);
|
||||
// const saltDataView = new DataView(saltArrBuf);
|
||||
// saltDataView.setUint32(0, coinNumber);
|
||||
// const out = kdf(64, secretSeed, salt, info);
|
||||
// const coinPriv = out.slice(0, 32);
|
||||
// const bks = out.slice(32, 64);
|
||||
// return {
|
||||
// bks,
|
||||
// coinPriv,
|
||||
// coinPub: eddsaGetPublic(coinPriv),
|
||||
// };
|
||||
// }
|
||||
|
||||
function bufferForUint32(n: number): Uint8Array {
|
||||
const arrBuf = new ArrayBuffer(4);
|
||||
|
@ -557,7 +557,8 @@ export class CryptoImplementation {
|
||||
let coinPub: Uint8Array;
|
||||
let coinPriv: Uint8Array;
|
||||
let blindingFactor: Uint8Array;
|
||||
if (this.primitiveWorker) {
|
||||
// disabled while not implemented in the C code
|
||||
if (0 && this.primitiveWorker) {
|
||||
const r = await this.primitiveWorker.setupRefreshPlanchet({
|
||||
transfer_secret: encodeCrock(transferSecret),
|
||||
coin_index: coinIndex,
|
||||
|
Loading…
Reference in New Issue
Block a user