This forum is a read-only archive. Posting, replying and signing in are disabled.

Problem implementing logic signature

ddev

I am unable to implement logic signature in my python code. The issue is arriving at the logic program which is then converted into a logic signature. Anyone to help me code example? I read one on the developer’s resources still can’t get it.

ddev

@fabrice here is where I have issue.


logicsic = transaction.LogicSig(program)

i = create_transaction(defaultAddr, rec, 100000)

lstx = transaction.LogicSigTransaction(i, logicsic)

assert lstx.verify()

algodClient.send_transaction(lstx, headers={'content-type': 'application/x-binary'})```
ddev

Let me walk through this link you pasted. I’ll revert shortly.

ddev
↩ in reply to ddev

My headache is actually where you have the program in line
logicsig = transaction. LogicSig(program)

How is the program arrived at? I tried convert several strings to byte but not working.