waves_ride_dapps_dev | Unsorted

Telegram-канал waves_ride_dapps_dev - Waves Dev Jedi | RIDE for dApps

-

Only tech topics about Waves: dev tools, libs, RIDE, dApps, Nodes Github: http://tiny.cc/github-waves IDE: https://ide.wavesplatform.com/ Online Course: https://stepik.org/course/54415 StackOverflow: #wavesplatform Jobs: https://t.me/wavesridejobs

Subscribe to a channel

Waves Dev Jedi | RIDE for dApps

I can provide PHP code example of that you are doing.

Typical transfer transaction as json: https://github.com/deemru/WavesKit/blob/7c3e536a8f8c9591e4738028aaea5735d14c1d08/src/WavesKit.php#L1780-L1798

And as bytes: https://github.com/deemru/WavesKit/blob/7c3e536a8f8c9591e4738028aaea5735d14c1d08/src/WavesKit.php#L2310-L2323

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Where do you get such fields? attachmentLen? attachmentBytes?

Take any valid transfer as a reference, for example: http://nodes.wavesnodes.com/transactions/info/3XFDy1BDWW3FrticQpEuHKiMdVCuQ3dcVEcnHGusBdsV

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Pass to serialization endpoint version = 2 and to broadcast version = 2

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Looking at the serialization endpoint, I fixed my transaction serialization and now it generates the correct byte sequence. However, if you do not specify version 3 in the sent json, the node will automatically substitute the wrong version 1. After I have signed the bytes, I send a json transaction to the endpoint, adding a version 3 field to it: (watch the screenshot)
That is, the bytes of the version were not taken into account when signing. Should I specify version bytes in the signature? I think not, it is not given in the documentation (the table above). In the end, I get all the same error.

Читать полностью…

Waves Dev Jedi | RIDE for dApps

So it is from wavesplatform, as waves-transactions, i do not get it. Why you writing your own serialization?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

How can you avoid third-party with keccak256/blake2b/curve25519 signing? Are you writing your own signature/hash from scratch??

Читать полностью…

Waves Dev Jedi | RIDE for dApps

I already pointed where your error is. In serialization (or version). And you have the endpoint to check your serialization is correct. Then you fix you can try to sign again.

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Tried this lib? A bit outdated, but still
https://github.com/wavesplatform/waves-transactions

Читать полностью…

Waves Dev Jedi | RIDE for dApps

I pointed to serialization endpoint not broadcasting ^

Читать полностью…

Waves Dev Jedi | RIDE for dApps

I think you did version 2

Читать полностью…

Waves Dev Jedi | RIDE for dApps

I tried to make a byte-by-byte transaction, as in the documentation

typescript 
const txDataBytes = new Uint8Array(91);

txDataBytes[0] = txData.type;
txDataBytes.set(bs58.decode(txData.senderPublicKey), 1);
txDataBytes[33] = txData.amountAssetFlag;
txDataBytes[34] = txData.feeAsset;
txDataBytes.set(new Uint8Array(new BigInt64Array([BigInt(txData.timestamp)]).buffer), 35);
txDataBytes.set(new Uint8Array(new BigInt64Array([BigInt(txData.amount)]).buffer), 43);
txDataBytes.set(new Uint8Array(new BigInt64Array([BigInt(txData.fee)]).buffer), 51);
txDataBytes.set(bs58.decode(txData.recipient), 59);
txDataBytes[85] = txData.attachmentLen;
txDataBytes.set(new Uint8Array(txData.attachmentBytes), 87);

const txDataBuffer: Buffer = Buffer.from(txDataBytes);


txData - an item without a signature

Читать полностью…

Waves Dev Jedi | RIDE for dApps

txDataBuffer?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

If you have real question, not potential - ask them here. This is the purpose of this chat

Читать полностью…

Waves Dev Jedi | RIDE for dApps

https://youtu.be/WOh32CUxm84

1:21:08

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Responsible? I think he is in charge of the core team, but many flows switched to decentralized approaches via https://app.power.tech/ and https://dao.unit0.dev/

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Do not guess, you can use any libs to understand things and then make your own.

Читать полностью…

Waves Dev Jedi | RIDE for dApps

but it doesnt work to

Читать полностью…

Waves Dev Jedi | RIDE for dApps

If you do version 2, why you add version 3?

Читать полностью…

Waves Dev Jedi | RIDE for dApps

for educational purposes, I was given this task. Without using third-party dependencies (only if copying, but not importing), write functions for creating a txBuild transaction, signing a txSign, and sending it to the network

Читать полностью…

Waves Dev Jedi | RIDE for dApps

i use ( ctrl c + ctrl v )
https://github.com/wavesplatform/curve25519-js

Читать полностью…

Waves Dev Jedi | RIDE for dApps

I'll try to figure it out and write to you again. Thank you so much for such quick feedback!

Читать полностью…

Waves Dev Jedi | RIDE for dApps

my task is to avoid using third-party libraries. :(As a last resort, I'll try to send a transaction through this library, and figure out its code so that I don't end up using it.

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Version 3 transfer transaction is protobuf like (serialization)

Читать полностью…

Waves Dev Jedi | RIDE for dApps

after this error, I turned to you!

Читать полностью…

Waves Dev Jedi | RIDE for dApps

You can always check yourself here: http://nodes.wavesnodes.com/api-docs/index.html#/utils/serializeTx

Читать полностью…

Waves Dev Jedi | RIDE for dApps

If you are doing some your own code for signing Waves transactions, this is the best reference to start: https://docs.waves.tech/en/blockchain/waves-protocol/cryptographic-practical-details

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Hi @deemru! Yesterday I scrolled through a lot of questions on the 2018-2019 forum, and you actively answered there, it was unexpectedly nice to find you here! I need your help. In my app, I am trying to sign a transfer transaction, but I encounter error 112 invalid signature. I collected the necessary bytes exactly according to the documentation, hashed them using keccak + blake


const txHash: Buffer = createKeccakHash('keccak256').update(blake2b256(txDataBuffer)).digest();

, and signed them using a private key and curve25519. I think the problem may be that I am sending the wrong json structure. Here is one of the options that I sent:
{
type: 4,
version: 3,
sender: '3PLYHmpVK9T5tQSTUf3W7wz8vT7RwyeCqr7',
senderPublicKey: 'GHkVCQTEEBiagP1ikpEut4pTWj1gKcqCePkp9esMJqY4',
recipient: '3PHPyhDzeMNSKQiXAG3zJp3dB1D3MkDkdVF',
amount: 500000,
fee: 100000,
timestamp: 1736429211225,
attachment: '',
proofs: [
'9BVzCWAwRF4DDqbVBuRArFmqxdF1K8bipPC6YC9y3iHptorDLfA47w5r7ntu3AUtvw4hhrEaXQpgyF1JMw8qjNh'
],
chainId: 87
}
ps: можно перейти на русский )

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Hello everyone,

I am Archimedian, the founder of the MCE token recently deployed on the Waves blockchain.
Our project aims to create a financing tool for energy projects worldwide.

I would like to be connected with a representative or administrator to discuss potential questions I have regarding the platform.

For more information, feel free to visit our website: mkfinanceshome.com
Alternatively, you can contact me directly via private message.

Best regards,
Archimedian

Читать полностью…

Waves Dev Jedi | RIDE for dApps

In the recent interview he said that he sold all his WAVES, that's why I am asking

Читать полностью…

Waves Dev Jedi | RIDE for dApps

Is Sasha still responsible for the ecosystem?

Читать полностью…
Subscribe to a channel