Questions tagged [signature]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
335 views

verify ecdsa signature in solidity

I want to create a smart contract that contains the public key of a party (the key is generated outside the blockchain) and contains a function to verify signed data. How can we implement this ...
2
votes
0answers
87 views

Can a view function from a funded smart contract execute a send() transaction on an external contract?

I'm creating an open source voting app with a Node.JS front end. I'm hoping I can create a smart contract that can use funds allocated to it at creation time, so that participating voters don't have ...
1
vote
0answers
29 views

Recovering the message that is digitally signed not only the address

Is there a way to recover a digitally signed message in a smart contract? ecrecover(msgHash, v, r, s) returns the address that signed the msgHash. I am looking for something that can return the ...
2
votes
2answers
183 views

Dynamic number of inputs to a smart contract

Assume we a smart contract that accepts a number of cryptographically signed attributes. The smart contract will validate each signature and check that all the addresses of those signed signatures ...
0
votes
1answer
513 views

Error “does not exist” using web3.eth.personal.sign

In Error using web3.eth.personal.sign , the problem with the number of arguments was resolved. But now that I can try the actual call, I'm getting a "does not exist" error. console.log("Calling ...
0
votes
1answer
553 views

How to sign pieces of data (ie strings of text) with golang?

I'm trying to figure out how to sign a piece of data (in this case a string) using golang. So far everything I can find is about signing transactions which wont work for signing pieces of data that is ...
3
votes
1answer
243 views

Error using web3.eth.personal.sign

I'm getting an error using web3.eth.personal.sign, with it complaining that the call "Expected 0 arguments, but got 3". I call it in an Angular/Typescript/javascript environment: this.bottleSig=this....
2
votes
0answers
172 views

Ethereum public key recovery validation

I always thought that only the person(s) in possession of the private key to an address would be able to spend or change state for that account. But by using the recover technique rather than the ...
3
votes
2answers
475 views

Get public key from signature in a smart contract (note, public key, not address)

Are there any libraries to get a public key from a signature in a smart contract? The ecrecover method returns an address, not a public key, and to do computations that need to derive a public key ...
1
vote
0answers
1k views

Why the value of v is always either 27 (11011) or 28 (11100)?

Why the value of v is always either 27 (11011) or 28 (11100), and, how is it known wether it will be 27 or 28?
0
votes
1answer
739 views

How can I obtain my public key (using web3)

I know my Ethereum address, my Metamask wallet will give it to me, and I can run : web3.eth.coinbase But I want to know what my public key is. Is there any way I can find that ? (the reason I want ...
3
votes
4answers
892 views

Should UIs handle 4Byte signature collisions

With 4 bytes collissions are possible. But they are not very likely. Currently in the 6,846 signatures in the 4Byte.direcory there are no collisions. Still they are possible. Now I wonder if UIs ...
1
vote
0answers
117 views

Correct way to verify address server-side with Web3 [duplicate]

I'm trying to use web3 1.0 to authenticate users on a web server. Instead of having unauthenticated users submit a username and password, I want them to send their address (public key). I'll respond ...
1
vote
2answers
565 views

Why doesn't my verification of a signed message signature work in PHP?

I am attempting to verify a signed message in PHP. To be clear, I am not looking to interface with JSON-RPC or any external service, which I both a) know works and b) successfully verifies the ...
1
vote
1answer
27 views

Do you spend gas to sign a message and send it to another client?

Let's say that I want to send the hash of a key to an entity and I want the entity to be sure that the hash could have come only from me. It is possible to create a message with the hash of the key ...
1
vote
0answers
298 views

Does Geth have more transaction signers than EIP155Signer, FrontierSigner, and HomesteadSigner?

I'm trying to write code (in Scala) to verify transactions on the main net and I've go it to where it works on about 50% of transactions. The steps I'm following are: Download the transaction using ...
0
votes
1answer
337 views

Using smart contract to verify computation on encrypted data

I’m working on a project where all data is stored encrypted on a blockchain. There are some off-chain compute nodes that have the key to decrypt the data and perform some computation and return ...
0
votes
2answers
821 views

How can I use geth's ecRecover to verify a signed message from TREZOR?

I cannot get this to work. I understand from this that TREZOR adds the magic message and a hexadecimal message length (as opposed to ASCII length) of the message before signing. Is it just not ...
0
votes
2answers
177 views

Encrypted data and digital signatures in the blockchain?

Let's say that Alice publishes some data on the blokchain encrypted with Bob's public key. Bob then decrypts the data. Later Bob wants to prove that he is the owner of that data, that is he wants to ...
0
votes
1answer
84 views

When verifying that a cryptographic signature was produced by an ethereum address, how can I verify the validity of the data which was signed?

I'm attempting to play around with signature verification in solidity through the use of ecrecover and have gotten to the point of being able to verify the address which was used to sign a particular ...
2
votes
0answers
72 views

Can I use a Bitcoin client to sign a message with an Ethereum address?

If an Ethereum address is a point on the Bitcoin EC, then one can use the private key that matches that address to sign a message using bitcoin software. I'd like someone to prove they have the ...
1
vote
1answer
756 views

How do you find the public key used to sign a transaction?

I'm trying to figure out how you find the public key used to sign a transaction from v, r, and s. Before someone says so, this isn't a duplicate of Get public key of any ethereum account. That ...
0
votes
1answer
321 views

Gas Requirement for Ethereum Message Signing

Is Gas required to sign a message using ethereum?
2
votes
2answers
286 views

Tx.origin and msg.sender when sending signed Raw transaction

A client with address A signs a raw transaction, and leaves it all ready to be sent, gives it to the server with address B, which later will send it with sendSignedTransaction(...). What will be the ...
2
votes
3answers
5k views

Signing message: Provided address is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be converted

Provided address is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be converted is not a dupe, this is about signing messages My code: const ...
10
votes
3answers
19k views

How to properly create a raw transaction and sign it using web3 in browser

I want to create and sign a transaction in browser using web3. In order to create a raw transaction, I think I have to do something like this (hopefully you can fill the gaps of my knowledge) var pk =...
0
votes
1answer
121 views

How to prevent tampering of contract call from the web?

I have a project where users will be calling my contract from the web. I want to ensure they call the contract with exactly the parameters I give them. My strategy was to hash the combo of parameters, ...
0
votes
2answers
483 views

How to make function signature? ERC223 ContractReceiver

Hi what does these lines mean? function tokenFallback(address _from, uint _value, bytes _data) { ... uint32 u = uint32(_data[3]) + (uint32(_data[2]) << 8) + (uint32(_data[1]) << ...
1
vote
2answers
848 views

Deriving the v value from an ECDSA signature without web3j

I am currently signing with a the ECDSASignature spec in java however I noticed that getting a v value from the signature is a custom spec for ethereum. My code: public static void main(String[] ...
1
vote
0answers
151 views

Convert an hexadecimal string to bytes in pure Solidity

I am using Oraclize to recover a signature from a website. When I have it, I have to check if the address who signed it is correct. To do that, I would use ECRecovery from Zeppelin. The signature ...
1
vote
1answer
473 views

Implementing EIP 155 for Signing Party

EIP-155 states: If block.number >= FORK_BLKNUM and v = CHAIN_ID * 2 + 35 or v = CHAIN_ID * 2 + 36, then when computing the hash of a transaction for purposes of signing or recovering, instead ...
1
vote
0answers
385 views

keccak256 returns 0x000000000000000

I am using the keccak256 hashing algo to retrieve a message for a signature however I am getting the return value above. Here is the code: function adminAuthorizedSwap(string price, string quantity, ...
2
votes
2answers
649 views

how to use personal_sign

https://github.com/ethereum/go-ethereum/wiki/Management-APIs {"method": "personal_sign", "params": [message, account, password]} The param message is a hex string, how can I generate it from a tx? ...
0
votes
1answer
440 views

How do I set the Ledger Nano S to display the recipient's full address?

Presently the Ledger Nano S is showing only the first few first and last digits, with the middle truncated. Why does it truncate the middle of the address? How do we display the entire address?
2
votes
1answer
262 views

What is the best type to store a signature on chain?

I'm signing a hash and getting a string with 130 bytes. What is the best way to store this signature later in my smart contract? Should I just go ahead and split it into r,s, and v and store it in ...
4
votes
1answer
358 views

Verifying Bicoin signed message in Ethereum smart contract

I'd like to explore the option to verify the messages that have been signed in Bitcoin wallets in Ethereum smart contracts. Ethereum smart contract is given a list of Bitcoin addresses Ethereum smart ...
3
votes
0answers
354 views

Can the precompiles in Byzantium for pairings be used for implementation of BLS verification?

I am looking into implementing some operations for the BLS signature scheme in Solidity, using the new precompiled contracts for pairing operations released with Byzantium. In BLS verification, to ...
2
votes
1answer
427 views

How do I split a signature into v, r, and s parts in python?

I've got a signature, as a python bytes object, and want to split it into the components v, r, and s. I understand the details of what needs to be done, by reading: What's the best way to ...
3
votes
3answers
272 views

Sign a raw TX without a library?

I am looking for a way to sign a transaction manually by having the necessary input without using any libraries. I haven't found how the signing process exactly works anywhere hence why I am asking ...
4
votes
1answer
443 views

Can a message hash be recovered from a signature?

A message can be signed and its signing public key recovered given the signature and message hash... signature = web3.personal.sign(<account>,<message hash>) pubKey = web3.personal....
2
votes
1answer
611 views

Signature in Ethereum: Are all a transaction fields signed?

Assume a transaction is tx. My question is that Question 1: Does a sender sign all fields in a transaction and put the signature in the transaction?, so does it send to the network? Question 2: ...
0
votes
1answer
1k views

How to generate signature & validate signature offline w/o using web3

I just need a simple way to sign a message offline, preferably using Python or JavaScript. I don't want to have to sign in using Web3. I just want my private key to be used from a variable in the code....
1
vote
1answer
110 views

Verify multiple state channel signatures in one transaction

What are some ways to verify multiple state channel signatures (using ECverify) in a single transaction?
1
vote
0answers
138 views

Can not retrieve Ethereum address form transaction signature on Python

I'm trying to retrieve the ethereum address from the transaction signature. I have got the following transaction: { blockHash: "0x82388a80a654586ec646115ae63a664e594e0e34dd6fb20dcf078d9495788578", ...
5
votes
1answer
470 views

Signatures differ in web3js and web3j

I'm using web3J version 3.0.0-alpha4 and hit following problem. When I sign the same raw message (it's simply string like "TEST" for now) I get different signatures using web3js i web3j. The signature ...
0
votes
2answers
461 views

Ecrecover: does passing the hash and checking it adds any security?

I have seen quite a few examples where both the data and the hash of the data is passed. The signature is verified using ecrecover which is fine. The passed hash is also verified against the ...
1
vote
0answers
54 views

Similar to currency-abstraction, could there be cryptography-abstraction (free market for digital signatures on a single state)?

Currency-abstraction for mining rewards was planned for Serenity, and so on, and so is out there as an idea. I thought about "signature-abstraction", so that different digital signatures could compete ...
4
votes
1answer
3k views

Verifying personal.sign signature with pyethereum

I'm trying to verify a signed message from Metamask with pyethereum. I can not seem to recover the correct address from the signature. Lack of documentation isn't helping matters. On the client ...
1
vote
1answer
421 views

Sign a transaction hash using JavaScript

Which JavaScript library should I use to sign a transaction hash? I don’t want to sign a transaction object. I simply want to sign the hash so I'll have a signature, not a signed transaction object.
1
vote
0answers
240 views

Send signed transaction hash to the network

The Parity native signing app takes the hash of a transaction and signs this has with a private key, derived from a seed phrase. Below is the corresponding code from signer.js: let account = getState(...