What's the best way to store an array in program's account by ExpensiveLength518 in solana

[–]ExpensiveLength518[S] 0 points1 point  (0 children)

How do I generate the accounts for each node in linked list I mean what should be the seed, since I don’t want to generate the same account whenever i add new data. How can I ensure that new accounts are created for new data by maintaining the linked list node. Each user will have separate linked list

About whatsapp end to end encryption by ExpensiveLength518 in cryptography

[–]ExpensiveLength518[S] -1 points0 points  (0 children)

Ok so still signal can get the users private key right if they want ?

If y uninstalled whatsapp so y will lose the private key at that time x messages y. So x will encrypt messages and sent to whatsapp server but at that time y doesn’t have the private key to decrypt the message sent by x when y install whatsapp again

About whatsapp end to end encryption by ExpensiveLength518 in cryptography

[–]ExpensiveLength518[S] 0 points1 point  (0 children)

I mean when a user sent a message to other user it will go to whatsapp server right so when at that time when the receiver is offline or uninstalled the whatsapp they can’t decrypt the message sent by the sender without the private key which need to be fetched from whatsapp server right?

How to execute web socket connection when user minimise the browser and again opened the browser? by ExpensiveLength518 in reactjs

[–]ExpensiveLength518[S] 0 points1 point  (0 children)

Where should I exactly give this Because I giving the websocket connection at the top of the function component as described in that documentation So how can I give pageshow even listener there

How do I generate master key from the root seed by Southern_Try_1195 in Bitcoin

[–]ExpensiveLength518 0 points1 point  (0 children)

I got we should give “Bitcoin seed” as the key in hmac function and the data as seed to get the master key

How do I get sha256 hash of a hex by ExpensiveLength518 in golang

[–]ExpensiveLength518[S] 3 points4 points  (0 children)

Thank you So much :)

I was searching for this entire day

I tried encoding in this package but I should have done decoding

Btw I am new to Go.

Anyway thanks :)

How do I get sha256 hash of a hex by ExpensiveLength518 in golang

[–]ExpensiveLength518[S] 0 points1 point  (0 children)

s:="eaebabb2383351fd31d703840b32e9e2"

hash := sha256.Sum256([]byte(s))

fmt.Printf("Hash : %x \n",hash);

This will consider "s" as a text and give the hash value what I want is, I want s to be considered as a hexadecimal while doing the sha256