sawtooth-cookiejar icon indicating copy to clipboard operation
sawtooth-cookiejar copied to clipboard

Changing State Address

Open hariweeroda opened this issue 5 years ago • 1 comments

Hello Dan,

From your CookieJar example , i am trying to change the "from_key" value but keeping the namespace same as Family Name, i am not able to change the from_key value to another string - that i can encode and use. i get invalid key error - can you help?

return _hash(FAMILY_NAME.encode('utf-8'))[0:6] +
_hash(from_key.encode('utf-8'))

hariweeroda avatar Feb 12 '20 09:02 hariweeroda

i even tried your recommendation as mentioned in https://stackoverflow.com/questions/54663482/sawtooth-transaction-error-tried-to-set-unauthorized-address

i am missing something , what i am trying to do is

  • use the same example and have "make" "eat" and "count" on different Jar names that are specified at runtime as argument. i don't get it to work :(

hariweeroda avatar Feb 12 '20 11:02 hariweeroda