import Array "mo:base/Array";
func reverse<A>(xs : [A]) : [A] {
let size = xs.size();
Array.tabulate(size, func (n : Nat) : A {
xs[size - 1 - n];
});
};
https://forum.dfinity.org/t/reversing-an-array/12724
import Array "mo:base/Array";
Array.find<MealTypeId>(v.mealTypeIds, func(x) { x == mealTypeId }) != null
One of the core capabilities of ICP is threshold cryptography (Chain-Key Cryptography). Currently ICP subnets use Threshold BLS signatures to authenticate state and responses, and allow smart contracts to request ECDSA (over the Bitcoin curve secp256k10) signatures. Each smart contract has a dedicated path in the key derivation tree and can derive public keys and request signatures accordingly.
Jan 29, 2024Decentralized Inscription Service
Jul 21, 2023Hey fellow hacker :wave: , great that you want to explore the capabilities and possibilities of the Internet Computer Protocol. We've compiled a list of resources to make starting off as simple as possible, and provide you a quick reference to find more information, tools and help. General Introduction Tweet thread sized pitch of ICP Introduction to ICP Introduction video from ETHDenver Comparison between different blockain platforms
Apr 25, 2023Overview Status: Draft Project Type: Cooperative - Multiple workers can submit work, and the bounty is shared Time Commitment: Weeks Experience Level: Intermediate Size: USD 25'000 in ICP (at time of distribution) Description In order to provide more visibility of the Internet Computer DeFi ecosystem, ICRC-1 tokens and decentralized exchanges should be listed on the popular financial data provider websites of the cryptocurrency industry, such as CoinMarketCap and DefiLlama. For this, the IC ecosystem needs to define and implement standard interfaces that meet the requirements of the financial data providers. The goal of this bounty is the creation of interface standards and implementations for AMM and orderbook-based decentralized exchanges (DEXes).
Apr 6, 2023or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up