jsonld-signatures-merkleproof2019
Version:
A jsonld signature implementation to support MerkleProof2019 verification in Verifiable Credential context
12 lines (10 loc) • 376 B
text/typescript
import { describe, it, expect } from 'vitest';
import { toUTF8Data } from '../../src/utils/data';
describe('toUTF8Data method', function () {
describe('given a string', function () {
it('should return a UTF8 encoded array from the characters', function () {
const output = toUTF8Data('test');
expect(output).toEqual([116, 101, 115, 116]);
});
});
});