Skip to content

Instantly share code, notes, and snippets.

View sergeevii123's full-sized avatar

ilia sergeev sergeevii123

View GitHub Profile

Notary

Notary hook collects signatures for multi-sign transactions. It has two modes of operation:

  1. Attach a proposed transaction to a memo and send it to the hook account
  2. Endorse an already proposed transaction by using its unique ID as invoice ID and sending a 1 drop payment to the hook.

It relies on the signer list on the account the hook is running on. Only accounts on this list can propose and endorse multisign transactions through this hook.

to test:

  • make sure Hooks Builder has at least 3 accounts: Alice, Bob and Carol
import gym
import numpy as np
import tensorflow as tf
env = gym.make('CartPole-v0')
epsilon = 1e-3
def policy_gradient():
state = tf.placeholder(dtype=tf.float32, shape=(None, 4))
actions = tf.placeholder(dtype=tf.float32, shape=(None, 2))