All Projects → pebble8888 → ed25519swift

pebble8888 / ed25519swift

Licence: Zlib License
ed25199 implementation by pure swift

Programming Languages

swift
15916 projects
c
50402 projects - #5 most used programming language
SWIG
194 projects
C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to ed25519swift

rigel
[UNMAINTAINED] HMAC-SHA512 implementation optimized for embedded devices
Stars: ✭ 14 (-46.15%)
Mutual labels:  crypto
desktop
CoinApp is a simple to use minimal Cryptocurrency Wallet for Ethereum, ERC20 Tokens, Bitcoin and Litecoin built for Windows, Mac and Linux.
Stars: ✭ 60 (+130.77%)
Mutual labels:  crypto
ArduinoSpritzCipher
Spritz encryption system portable C library, CSPRNG, cryptographic hash and MAC functions, symmetric-key data encryption, and general-purpose functions. It's also an Arduino library.
Stars: ✭ 67 (+157.69%)
Mutual labels:  crypto
intellij-investor-dashboard
📈 Investor Dashboard for JetBrains IDEs. Support A Share, H.K. Stocks, U.S. Stocks and Crypto etc.
Stars: ✭ 60 (+130.77%)
Mutual labels:  crypto
minisketch-rs
Rust bindings to @sipa's minisketch library
Stars: ✭ 16 (-38.46%)
Mutual labels:  crypto
gdax bot
gdax_bot - Micro dollar cost averaging for crypto
Stars: ✭ 57 (+119.23%)
Mutual labels:  crypto
awesome-tetherino
Awesome Tetherino - 60 000+ Million $USDT Crypto "Stable" Coin Printed Out of Thin Air and Officially Backed by Commercial Paper (2-Ply Rated Soft - Yes, Trust Us, Don't Verify) - Inside the Tether Ponzi Scheme - A Bubble for the History Books and Fraud on the Scale of Madoff
Stars: ✭ 45 (+73.08%)
Mutual labels:  crypto
lootloose.com
LootLoose lets you unbundle your Loot Bags into individual item NFTs or rebundle items into their original Loot Bags.
Stars: ✭ 33 (+26.92%)
Mutual labels:  crypto
OormiPass
Free open source cross platform password manager
Stars: ✭ 50 (+92.31%)
Mutual labels:  crypto
mbedtls-esp8266
Updated and Upgraded mbedTLS library for the ESP8266 (probably ESP32 too)
Stars: ✭ 13 (-50%)
Mutual labels:  crypto
i2pchat
🌀 i2pchat. Anonymous private secure opensource chat using end-to-end encrypted transport.
Stars: ✭ 25 (-3.85%)
Mutual labels:  crypto
fireblocks-sdk-py
Official Python SDK for Fireblocks API
Stars: ✭ 32 (+23.08%)
Mutual labels:  crypto
reblocks
React Components for Nano cryptocurrency (formerly RaiBlocks) - including Payments via Brainblocks
Stars: ✭ 21 (-19.23%)
Mutual labels:  crypto
ccapi
A header-only C++ library for interacting with crypto exchanges. Binding for Python is provided. A spot market making application is also provided as an end-to-end solution for liquidity providers.
Stars: ✭ 227 (+773.08%)
Mutual labels:  crypto
Awesome-JavaScript-Crypto-Libraries
List of awesome JavaScript Crypto Libraries
Stars: ✭ 55 (+111.54%)
Mutual labels:  crypto
secman
[Archived] 👊 Human-friendly and amazing secrets manager.
Stars: ✭ 63 (+142.31%)
Mutual labels:  crypto
coinbash
💰 A bash script (CLI) for displaying crypto currencies market data in a terminal 🖥
Stars: ✭ 110 (+323.08%)
Mutual labels:  crypto
Wallet3
A secure mobile wallet for web3
Stars: ✭ 13 (-50%)
Mutual labels:  crypto
idy
👓 An ID obfuscator for ActiveRecord
Stars: ✭ 15 (-42.31%)
Mutual labels:  crypto
TelegramTrader-MT4-MT5
Connect Telegram Messenger to Metatrader for Live Quotes, Charts, Trading, and Managing Robots(Expert Advisors)
Stars: ✭ 74 (+184.62%)
Mutual labels:  crypto

Ed25519

Ed25519(EdDSA) by pure swift

ed25519

License

Ed25519 can be used, distributed and modified user the zlib license.

Requirements

Ed25519 requires Swift5.

macOS, iOS

Install

CocoaPods

pod 'ed25519swift'

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

Once you have your Swift package set up, adding Ed25519 as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/pebble8888/ed25519swift.git", from: "1.2.7")
]

Dependency

CryptoSwift for sha512

BigInt for reference implementation that is not included main Ed25519 library.

How to use

Key pair creation

import Ed25519macOS // direct
or
import ed25519swift // pods or Swift Package Manager

static func Ed25519.generateKeyPair() -> (publicKey: [UInt8], secretKey: [UInt8])

Signing

static func Ed25519.sign(message: [UInt8], secretKey: [UInt8]) -> [UInt8]

Validation

static func Ed25519.verify(signature: [UInt8], message: [UInt8], publicKey: [UInt8]) -> Bool

Calc public key from secret key

static func Ed25519.calcPublicKey(secretKey: [UInt8]) -> [UInt8]

Check valid keypair

static func Ed25519.isValidKeyPair(publicKey: [UInt8], secretKey: [UInt8]) -> Bool

Implemantation

It is ported from SUPERCOP

You can check the algorithm in these papers and RFC.
Daniel J. Bernstein, Niels Duif, Tanja Lange, Peter Schwabe, and Bo-Yin Yang, High-speed high-security signatures. 2012

Huseyin Hisl, Kenneth Koon-Ho Wong, Gary Carter, Ed Dawson, Twisted Edwards curves revisited. 2008

RFC8032 Edward-Curve Digital Signature Algorithm (EdDSA)

Performance

macOS

On MacBook Pro 2017 2.3Ghz Intel Core i5

message validation : 10.7 msec per message
keypair creation : 4.8 msec per keypair

iOS

no measurement

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].