finish websocket protocol.

This commit is contained in:
fiatjaf
2021-01-04 14:27:53 -03:00
parent b077271d46
commit 5921ad1080
3 changed files with 29 additions and 6 deletions

View File

@@ -2,6 +2,8 @@ import shajs from 'sha.js'
import BigInteger from 'bigi'
import schnorr from 'bip-schnorr'
import {makeRandom32} from './utils'
export function serializeEvent(evt) {
return JSON.stringify([
0,