This commit is contained in:
boufni95 2024-08-31 15:24:41 +00:00
parent 747bce3cf1
commit 8b25f05e6c

View file

@ -70,10 +70,10 @@ export const encodeNoffer = (offer: OfferPointer): string => {
const data = encodeTLV({
0: [hexToBytes(offer.pubkey)],
1: (relays).map(url => utf8Encoder.encode(url)),
2: [hexToBytes(offer.offer)]
2: [utf8Encoder.encode(offer.offer)]
});
const words = bech32.toWords(data)
return bech32.encode("nprofile", words, 5000);
return bech32.encode("noffer", words, 5000);
}
const parseTLV = (data: Uint8Array): TLV => {