Questions tagged [serpent]
programming language for writing contracts
26 questions
4 votes
1 answer
146 views
How are function signature hashes calculated in serpent?
We know in solidity it is something like this bytes4(keccak256("hello(string)") but what about serpent? In Theory we should be able to call serpent contract code from solidity using these signature ...
0 votes
1 answer
104 views
Serpent Vulnerabilities, Migrate to Solidity?
With recent high profile bugs discovered in the core Serpent Language, would it be wise to henceforth make Solidity the deFacto Dapp Language? https://medium.com/@AugurProject/serpent-compiler-...
1 vote
1 answer
41 views
What does Data Keyword do?
data domains[](owner, ip) # list Source video:
1 vote
1 answer
283 views
Could Ethereum obtain broad contract language support like NEO?
I recently saw NEO being advertised as Ethereum but with multiple language support for smart contracts. Is this really something that Ethereum lacks? Is it not technically possible to build more ...
2 votes
1 answer
3k views
How can you split calldata bytes to an arbitrary number of different log events?
The following code is incomplete. What I want to do is split the bytes data (calldata) into two or more separate log functions for indexing reasons. The problem is I can't figure out how to do it in ...
8 votes
3 answers
6k views
Why did Serpent die?
Was really excited about the prospects of working on Ethereum with its python implementation but learnt that it's getting deprecated...why has this happened and can we hope for any other python ...
6 votes
2 answers
4k views
How to implement cryptographic algorithms in smart contracts?
I need to implement cryptographic algorithms such as AESCCM and elliptic curve algorithms (ECDSA, ECIES) within a smart contract. Is there any implementation of such algorithms in Solidity or Serpent? ...
2 votes
1 answer
160 views
Does Serpent/Solidity allow functions to jump into other functions?
Do either Serpent or Solidity allow calling other functions in the same contract via a JUMP opcode, or do they only use CALL?
5 votes
3 answers
9k views
Are there any implementations of smart contracts in Python?
I want to implement some smart contracts and I am strongest in python.
1 vote
0 answers
146 views
Serpent function to compare strings
I would like to write a simple Serpent function that involves string comparison, but even the simplest example I can think of does not work as I would like. This post gets me part of the way . . . ...
1 vote
1 answer
2k views
pytest test_contracts.py error: ImportError: cannot import name state_transition
I am struggling to set up pyethereum on an old ThinkPad T500 running Ubuntu 16.04 and Python 2.7.11+, following installation instructions here and here. When I test the installation with: pyethereum/...
4 votes
0 answers
88 views
How can I link the serpent compiler to geth?
geth offers the function eth.compile.serpent. However, when I try to provide some source to the compiler, it returns The method eth_compileSerpent does not exist/is not available. I wonder: How can I ...
1 vote
1 answer
147 views
Help me debug this delegatecall Serpent demo I'm working on?
https://gist.github.com/ChrisCalderon/2818e6ba0214c25962b16c02e761dc26 Whenever I try to run it, I get "Transaction Failed". What it's supposed to do is call it's own functions double and half using ...
4 votes
1 answer
131 views
How to have a private function in Serpent?
I've been reading this tutorial on contracts and implementing them in Serpent and on the bottom of page 13: Any time we reference a function within the contract, we must call it from self (a ...
6 votes
2 answers
704 views
Is there a website like etherscripter.com, for Solidity?
Is there a Scratch website available for the Solidity language? The only one I could find was Etherscripter.com however that one is only for Serpent.