Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Currency (ckBTC) #549

Open
atengberg opened this issue Jul 1, 2023 · 0 comments
Open

Add Currency (ckBTC) #549

atengberg opened this issue Jul 1, 2023 · 0 comments

Comments

@atengberg
Copy link

atengberg commented Jul 1, 2023

ICP recently launched its chain key bitcoin currency ("ckBTC") which uses the threshold signature encryption ICP is built on to directly sign and transact with the bitcoin mainnet; this makes it possible to handle native bitcoin transactions with all the benefits of asynchronous mutability the usual tech stack expects while still conserving bitcoin's virtual immutability and also gaining the benefits of ICP's distributed ledger threshold signature security. More than buzzwords, you can ready up on it here: ckBTC is bitcoin on Web3 and here: What is chain key cryptography? - ICWiki.

In short, a new form of programmable bitcoin that among other things could deprecate the model of bridge connection web3 currently must use; is also a more capable alternative than the lightning network (though it might be possible to integrate them as well).

ckbtc

<svg width="146" height="146" viewBox="0 0 146 146" fill="none" xmlns="http://www.w3.org/2000/svg">
  <rect width="146" height="146" rx="73" fill="#3B00B9"/>
  <path fill-rule="evenodd" clip-rule="evenodd" d="M16.3837 77.2052C18.434 105.206 40.794 127.566 68.7949 129.616V135.939C37.3087 133.867 12.133 108.691 10.0605 77.2052H16.3837Z" fill="url(#paint0_linear_110_572)"/>
  <path fill-rule="evenodd" clip-rule="evenodd" d="M68.7646 16.3534C40.7638 18.4036 18.4037 40.7637 16.3535 68.7646L10.0303 68.7646C12.1027 37.2784 37.2785 12.1026 68.7646 10.0302L68.7646 16.3534Z" fill="#29ABE2"/>
  <path fill-rule="evenodd" clip-rule="evenodd" d="M129.616 68.7343C127.566 40.7335 105.206 18.3734 77.2051 16.3232L77.2051 10C108.691 12.0724 133.867 37.2482 135.939 68.7343L129.616 68.7343Z" fill="url(#paint1_linear_110_572)"/>
  <path fill-rule="evenodd" clip-rule="evenodd" d="M77.2354 129.586C105.236 127.536 127.596 105.176 129.647 77.1749L135.97 77.1749C133.897 108.661 108.722 133.837 77.2354 135.909L77.2354 129.586Z" fill="#29ABE2"/>
  <path d="M99.8217 64.7245C101.014 56.7538 94.9447 52.4689 86.6455 49.6104L89.3376 38.813L82.7645 37.175L80.1435 47.6879C78.4155 47.2573 76.6406 46.8511 74.8771 46.4487L77.5168 35.8665L70.9474 34.2285L68.2534 45.0222C66.823 44.6965 65.4189 44.3746 64.056 44.0357L64.0635 44.002L54.9985 41.7388L53.2499 48.7586C53.2499 48.7586 58.1269 49.8762 58.0239 49.9454C60.6861 50.61 61.1672 52.3715 61.0867 53.768C58.627 63.6345 56.1721 73.4788 53.7104 83.3467C53.3847 84.1554 52.5591 85.3684 50.6982 84.9079C50.7637 85.0034 45.9204 83.7155 45.9204 83.7155L42.6572 91.2389L51.2111 93.371C52.8025 93.7697 54.3619 94.1872 55.8971 94.5803L53.1769 105.501L59.7426 107.139L62.4366 96.3343C64.2301 96.821 65.9712 97.2703 67.6749 97.6934L64.9902 108.448L71.5634 110.086L74.2836 99.1853C85.4922 101.306 93.9207 100.451 97.4684 90.3141C100.327 82.1524 97.3261 77.4445 91.4288 74.3745C95.7236 73.3842 98.9586 70.5594 99.8217 64.7245ZM84.8032 85.7821C82.772 93.9438 69.0284 89.5316 64.5727 88.4253L68.1822 73.957C72.638 75.0689 86.9263 77.2704 84.8032 85.7821ZM86.8364 64.6066C84.983 72.0307 73.5441 68.2588 69.8335 67.334L73.106 54.2117C76.8166 55.1364 88.7666 56.8623 86.8364 64.6066Z" fill="white"/>
  <defs>
    <linearGradient id="paint0_linear_110_572" x1="53.4736" y1="122.79" x2="14.0362" y2="89.5786" gradientUnits="userSpaceOnUse">
      <stop offset="0.21" stop-color="#ED1E79"/>
      <stop offset="1" stop-color="#522785"/>
    </linearGradient>
    <linearGradient id="paint1_linear_110_572" x1="120.65" y1="55.6021" x2="81.213" y2="22.3914" gradientUnits="userSpaceOnUse">
      <stop offset="0.21" stop-color="#F15A24"/>
      <stop offset="0.6841" stop-color="#FBB03B"/>
    </linearGradient>
  </defs>
</svg>

Note the above data was obtained by directly querying the ckbtc's smart contract. You can do this with the dfx sdk, or by following the link above, use the icrc1_metadata option to directly call the smart contract (it'll return the above svg encoded in base64 as the logo key).

@atengberg atengberg changed the title Add ckBtc Add Currency (ckBTC) Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant