Overview
The current Note class doesn't expose the inner JsNote fields, to reach those data the user has to access the inner type
The goal here is to expose the inner type fields
Spec
Fields to expose
Fields are defined in the inner type JsNote after building packages/wasm-utils/build/wasm-utils.d.ts
Getters
get HashFunction () {
return this.note.hashFunction ;
}
for importing types from wasm-utils use import type {xxx} from '@webb-tools/wasm-utils
EX import type {HashFunction} from '@webb-tools/wasm-utils'
Tests
Similar to the tests we have in the note.spec.ts packages/sdk-core/src/__test__/note.spec.ts, Add a test that leverages those getters and insure that the values are correct
Overview
The current
Noteclass doesn't expose the innerJsNotefields, to reach those data the user has to access the inner typeThe goal here is to expose the inner type fields
Spec
Fields to expose
Fields are defined in the inner type
JsNoteafter buildingpackages/wasm-utils/build/wasm-utils.d.tsGetters
for importing types from
wasm-utilsuseimport type {xxx} from '@webb-tools/wasm-utilsEX
import type {HashFunction} from '@webb-tools/wasm-utils'Tests
Similar to the tests we have in the
note.spec.tspackages/sdk-core/src/__test__/note.spec.ts, Add a test that leverages those getters and insure that the values are correct