Update nostr gem, switch to Ruby for bech32 encoding #155

Merged
raucao merged 2 commits from chore/bech32_handling into master 2024-01-21 09:31:52 +00:00
Showing only changes of commit e3c30f7b16 - Show all commits

View File

@ -1,13 +1,5 @@
import { Controller } from "@hotwired/stimulus"
function hexToBytes (hex) {
let bytes = []
for (let c = 0; c < hex.length; c += 2) {
bytes.push(parseInt(hex.substr(c, 2), 16))
}
return bytes
}
// Connects to data-controller="settings--nostr-pubkey"
export default class extends Controller {
static targets = [ "noExtension", "setPubkey", "pubkeyBech32Input" ]