Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Asindu
    @as1ndu
    okay
    Joel Yarde
    @jcyinnovations
    Hey everyone. Do you know what algo Zilliqa uses for the private key? Is it ECDSA p-256? Asking because I'm looking to generate an embedded ZIL wallet from a username/password pair in a prototype app.
    Amrit Kumar
    @AmritKumar
    Hello! It’s Schnorr Secp256k1.
    It’s better to use one of the SDKs that implement the signature scheme.
    Joel Yarde
    @jcyinnovations
    Thanks Amrit!
    Joel Yarde
    @jcyinnovations

    Afternoon everyone. Whenever I transact on Zilliqa the transactions follow this dynamic:
    1) compose the transaction and click send
    2) there is a delay of up to 2 minutes during which the transaction is not visible on ViewBlock
    3) after that delay, the transaction appears on ViewBlock and almost instantaneously is confirmed.

    In summary: the confirmations are instant, but it takes a very long time to appear on the blockchain.

    The delay on being committed to the blockchain makes the transaction appear just as slow (or sometimes even slower) than bitcoin or ethereum. So from an individual user perspective the speed of zilliqa isn't apparent.

    My questions are: What causes that delay on the chain? Is this a deliberate/architectural pause or a side-effect of something else? Can this delay be reduced to improve the "apparent" speed of the chain?

    Amrit Kumar
    @amrithoney_twitter
    @jcyinnovations There is a key difference between Zilliqa and blokchains like Bitcoin and Ethereum and that is finality to transactions. Because of the fact that Bitcoin/Ethereum use PoW for consensus, every block that is mined has probabilistic finality, i.e., the probability that a block will indeed be a part of the canonical chain increases with the number of blocks that get added on top of it. Zilliqa on the other hand uses BFT for consensus which means that once a block is mined, it is final. Therefore you don't need to wait for any confirmation at all. In Ethereum for instance, exchanges often wait for 30 confirmations as a newly mined block may not end up being in the canonical chain.
    Also, though they are somewhat correlated, there is a difference between latency and throughput.
    Joel Yarde
    @jcyinnovations
    @AmritKumar I do understand the delay is no reflection on the actual throughput of the network but it does affect the user experience (why I said "apparent" speed earlier). For a user making a payment transaction, the delay to acknowledge a committed transaction is significant. E.g if I'm at a Point-of-Sale paying for goods, when I commit the payment, the merchant then has to wait for that period before being able to confirm the payment is committed. Which is why I'm wondering if there is a way to reduce that latency.
    Cameron Sajedi
    @csajedi
    Hello again, I am looking forward to the developer chat. Where should we expect to meet? Will the channel/format be announced here?
    Cameron Sajedi
    @csajedi
    I'm trying to deploy a contract, which I've checked with a local installation of scilla checker and savant IDE. However, whenever I try with the python sdk it just hangs till timeout then replies with an array [9,1]. Golang SDK lacks the functionality, official JS SDK, zilpay deployer don't seem to function either. If anyone here has successfully deployed a complicated contract, how did you do it?
    renlulu
    @renlulu
    hi @csajedi actually golang sdk supports that feature, can check https://github.com/FireStack-Lab/LaksaGo/blob/master/contract/contract_test.go
    lehisnoe
    @lehisnoe
    Hello
    When new zil node starts sometimes it can't rejoin: https://pastebin.com/VNAgV2Ts
    Is there some way to rejoin except node's restart?
    lehisnoe
    @lehisnoe
    Because restart didn't helps always
    Cameron Sajedi
    @csajedi
    @renlulu awesome, I didn't know there were two golang sdks. I'll test this one out today.
    Vladimir Protasevich
    @Snuff
    Hey guys, how Zilliqa SDKs use protobuf?
    Cameron Sajedi
    @csajedi
    @Snuff the .proto file just specifies the wire format for a transaction to the zilliqa blockchain. It is not intrinsically used as part of a gRPC or other service generator, it was just pulled out of the core network's message standards to keep types and interfaces consistent across languages and SDKs. There are other messages in the zilliqa core that don't show up in the SDKs because really, from the outside of the participating nodes you don't need to worry about anything but composing and sending transactions in a safe manner.
    DaoChemist
    @DaoChemist_twitter

    Hey everybody, we'll be having our second dev community call this Thursday! Join in if you can (we'll have a recording as well):
    Gary Mensah is inviting you to a scheduled Zoom meeting.

    Topic: Zilliqa Dev Community Call #2
    Time: Sep 5, 2019 09:30 PM Singapore

    Join Zoom Meeting
    https://zoom.us/j/311147972

    One tap mobile
    +16465588656,,311147972# US (New York)
    +17207072699,,311147972# US (Denver)

    Dial by your location
    +1 646 558 8656 US (New York)
    +1 720 707 2699 US (Denver)
    Meeting ID: 311 147 972
    Find your local number: https://zoom.us/u/aduFNnTYoL

    Vladimir Protasevich
    @Snuff
    @csajedi thanks, my team is working on Ruby SDK for ZIL. For example, Swift SDK implemented protobuf integration for some reason, so I want to understand the underlying cause of it and decide to keep protobuf or get rid of it then.
    CreateTransaction RPC method takes JSON as input, not protobuf it seems
    Vladimir Protasevich
    @Snuff
    @jcyinnovations Hi, regarding the lag between submitting a transaction and its appearance on viewblock, unlike ETH or BTC Zilliqa hasn't implemented pending transactions feature yet. So that's currently impossible to get pending transactions to display them on viewblock. Hope this feature will be implemented soon.
    Vladimir Protasevich
    @Snuff
    @csajedi Ok, I got it, protobuf is used in sign transaction function
    Vladimir Protasevich
    @Snuff
    Has anyone already built native multisig based on Schnorr?
    Amrit Kumar
    @AmritKumar
    @Snuff There is a Ruby SDK that you can use off the shelf.
    renlulu
    @renlulu
    @csajedi this one is maintained my me, just let me know if you have any issue
    @Snuff sorry? but each sdk use the same proto.buf file I think, and use the specific tool provided by google to generate target code
    Vladimir Protasevich
    @Snuff
    @AmritKumar, thanks, I know. I have been using it for a while, it one of the most user-unfriendly SDKs ever, so I decided to help Zilliqa and my team has started working on an upgrade
    I discussed that with Han Wen already
    Joel Yarde
    @jcyinnovations
    Good morning all. How do I identify a transaction type on JSON-RPC?
    Here's a request/response pair:

    curl -d '{
    "id": "1",
    "jsonrpc": "2.0",
    "method": "GetTransaction",
    "params": ["64fde0551b64248cfb111d81dd20adf684e2de26d6453caa556ca49b3cb64c49"]
    }' -H "Content-Type: application/json" -X POST "https://dev-api.zilliqa.com/"

    {
    "id": "1",
    "jsonrpc": "2.0",
    "result": {
    "ID": "64fde0551b64248cfb111d81dd20adf684e2de26d6453caa556ca49b3cb64c49",
    "amount": "0",
    "gasLimit": "100000",
    "gasPrice": "10000000000",
    "nonce": "7",
    "receipt": {
    "cumulative_gas": "11452",
    "epoch_num": "696426",
    "success": true
    },
    "senderPubKey": "0x02F169504B7ED8E69A7F2B07DCC0F246D6000B686873E5EF3D82B10F86994F2E37",
    "signature": "0x7E09F78A4F924FF734E1A1CC0991100BB3C5720DE778907502B44CF985CAA945B0D538B040B619F2B771BDC935F8861C3CB248EC4CBECCB7832531DC3EE06DBB",
    "toAddr": "0000000000000000000000000000000000000000",
    "version": "21823489"
    }
    }

    ViewBlock is able to label all transactions by type but I can't see anything in this JSON-RPC response to allow that
    Vladimir Protasevich
    @Snuff
    @AmritKumar @evesnow91 could someone check this issue Zilliqa/Zilliqa#1797, it's a show stopper for us
    Cameron Sajedi
    @csajedi
    @Snuff This also confused me at first, the wire format for the Zilliqa RPC is entirely JSON. Protobufs are not used externally, I haven't double checked they aren't used internally either. It's a bit of a hassle because JSON is not by default safe to sign and send. Protobufs are backed by predictable byte structures and stronger typing. Using a .proto file does help mitigate these problems however.
    Chris P
    @christinto
    hey team
    playing around with dapps on testnet
    just wondering where to get testnet zil?
    Amrit Kumar
    @AmritKumar
    There is a faucet available
    wdwd5wd
    @wdwd5wd
    Hi team
    Amrit Kumar
    @AmritKumar
    Hello
    wdwd5wd
    @wdwd5wd

    Could anyone please kindly tell me how I can deploy my own private testnet with multiple machines?

    I know I can run a local testnet for a single machine following the instruction.

    Eugene Domosedov
    @ID25
    Hi team
    Using Ruby SDK, when trying to create smart contract and deploy it, i got error
    example from readme smart contracts - same story
    Server error -26: CHAIN_ID incorrect
    What i can do?
    Eugene Domosedov
    @ID25

    the problem above is not relevant, now when i create a new smart contract
    i got response

    {"ContractAddress"=>"1e366b36e5a17dec83c46f19d8d6b43434bd1dbb",
     "Info"=>"Contract Creation txn, sent to shard",
     "TranID"=>"411c1108800ac85118fcd9a44568d208276dcbdd5287c99119c69167912f344a"}

    but transaction is not created, error - Txn Hash not Present
    relevant question without answer - Zilliqa/Zilliqa#1776

    Amrit Kumar
    @AmritKumar
    @ID25 Are you on testnet on mainnet?
    Eugene Domosedov
    @ID25
    @AmritKumar mainnet
    Eugene Domosedov
    @ID25
    @AmritKumar i tried create contract in testnet, the same error Txn Hash not Present
    Amrit Kumar
    @AmritKumar
    @ID25 Could you post your code?
    I mean the contract code and the init.json?