export default class SMTMemDb { constructor(F) { this.nodes = {}; this.root = F.zero; this.F = F; } async getRoot() { return this.root; } _key2str(k) { const F = this.F; const keyS = this.F.toString(k); return keyS; } _normalize(n) { const F = this.F; for (let i=0; i