Skip to content

Instantly share code, notes, and snippets.

View joe-p's full-sized avatar

Joe Polny joe-p

View GitHub Profile
@joe-p
joe-p / verify_txn.js
Created January 9, 2022 19:34
Verify signed algosdk transaction (javascript)
const algosdk = require('algosdk');
const nobleEd25519 = require('@noble/ed25519');
// setup connection to algoexplorer API
const algodClient = new algosdk.Algodv2("", 'https://api.testnet.algoexplorer.io', '');
// generate a standalone account
const account = algosdk.generateAccount();
(async () => {
[ +0.000274] kvm [4548]: vcpu0, guest rIP: 0xffffffff8306b90d vmx: unexpected exit reason 0x33
[ +0.000001] *** Guest State ***
[ +0.000001] CR0: actual=0x0000000080050033, shadow=0x0000000080050033, gh_mask=fffffffffffffff7
[ +0.000000] CR4: actual=0x00000000003626f0, shadow=0x0000000000360ef0, gh_mask=ffffffffffffe871
[ +0.000001] CR3 = 0x000000007760a001
[ +0.000000] RSP = 0xffffffff84603ca8 RIP = 0xffffffff8306b90d
[ +0.000001] RFLAGS=0x00000002 DR7 = 0x0000000000000400
[ +0.000000] Sysenter RSP=fffffe0000002200 CS:RIP=0010:ffffffff83c017e0
[ +0.000002] CS: sel=0x0010, attr=0x0a09b, limit=0xffffffff, base=0x0000000000000000
[ +0.000001] DS: sel=0x0000, attr=0x1c000, limit=0xffffffff, base=0x0000000000000000