Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

spec/0.8.0 #87

Draft
wants to merge 42 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
dd078b8
removed all the old stuff
decanus Jul 1, 2019
415ad73
types
decanus Jul 1, 2019
433924b
constants
decanus Jul 1, 2019
cbd4ad9
cleanup
decanus Jul 1, 2019
1029bcd
whitspace
decanus Jul 1, 2019
ce9e341
cleanup lint
decanus Jul 1, 2019
1adb58d
created power tests
decanus Jul 2, 2019
8509f76
disable rule
decanus Jul 2, 2019
c004444
added misc
decanus Jul 2, 2019
453b05a
gwei
decanus Jul 2, 2019
8a44388
initial values
decanus Jul 2, 2019
825cdf8
time, state, reward and penalties
decanus Jul 2, 2019
c4c3439
max values
decanus Jul 2, 2019
4ec6cda
domain type
decanus Jul 2, 2019
a8b58f6
domain
decanus Jul 2, 2019
7f4bdba
started working on data types
decanus Jul 2, 2019
50641e2
updated
decanus Jul 2, 2019
13ccbe3
operations
decanus Jul 2, 2019
ccc8079
BeaconBLock
decanus Jul 3, 2019
a262c50
updated
decanus Jul 3, 2019
2de2415
docs
decanus Jul 3, 2019
06b7284
stuff added
decanus Jul 3, 2019
f55ff22
added docs
decanus Jul 3, 2019
9b88181
public
decanus Jul 3, 2019
bf34216
rm
decanus Jul 3, 2019
0ce32eb
Update README.md
decanus Jul 3, 2019
dd219a9
type
decanus Jul 3, 2019
5bec6b9
Merge branch 'spec/0.8.0' of github.com:yeeth/BeaconChain.swift into …
decanus Jul 3, 2019
b85a300
xor, integer_squareroot
decanus Jul 10, 2019
6581933
moved structures
decanus Jul 13, 2019
8674f92
renamed
decanus Jul 13, 2019
1cf2ad9
stubs
decanus Jul 19, 2019
e9cf06e
validator predicates
decanus Jul 19, 2019
36f271b
added test
decanus Jul 19, 2019
d5db232
added comment
decanus Jul 19, 2019
3a41dda
added isSlashahble for attestation data, further cleanup
decanus Jul 19, 2019
1e0eac9
made public
decanus Jul 19, 2019
8b31407
is_valid_indexed_attestation
decanus Jul 22, 2019
f887758
update
decanus Jul 22, 2019
fa177e3
updated
decanus Jul 22, 2019
832aaa0
isValidMerkleBranch
decanus Jul 22, 2019
5e26157
updated
decanus Jul 22, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ included:
- Tests
excluded:
- Tests/BeaconChainTests/XCTestManifests.swift
- Tests/LinuxMain.swift
file_name:
excluded:
- Package.swift
- LinuxMain.swift
identifier_name:
excluded:
- id
- to
- x
- y
- i
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ lint:
swiftlint

documentation:
jazzy --author "yeeth" --author_url https://yeeth.af --github_url https://github.com/yeeth/BeaconChain.swift
jazzy --author "yeeth" --author_url https://yeeth.af --github_url https://github.com/yeeth/BeaconChain.swift
rm -rf build/

xcode:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://travis-ci.com/yeeth/BeaconChain.swift.svg?branch=master)](https://travis-ci.com/yeeth/BeaconChain.swift) [![License](https://img.shields.io/github/license/yeeth/BeaconChain.swift.svg)](LICENSE)

Ethereum 2.0 beacon chain implementation based on the official [specification](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md). The implemented specification version is [bed88](https://github.com/ethereum/eth2.0-specs/tree/bed888810d5c99cd114adc9907c16268a2a285a9).
Ethereum 2.0 beacon chain implementation based on the official [specification](https://github.com/ethereum/eth2.0-specs/blob/master/specs/core/0_beacon-chain.md). The implemented specification version is [4ea79](https://github.com/ethereum/eth2.0-specs/tree/4ea79ee13b48c405c5a86cb3766af3ca0d3f6633).

## Contributing

Expand Down
12 changes: 7 additions & 5 deletions Sources/BeaconChain/BLS.swift
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import Foundation

// @todo this will be in a seperate library

class BLS {

static func verify(pubkey: Data, message: Data, signature: Data, domain: UInt64) -> Bool {
return true
static func verify(pubkey: Data, hash: Hash, signature: Data, domain: Domain) -> Bool {
return false
}

static func verify(pubkeys: [Data], messages: [Data], signature: Data, domain: UInt64) -> Bool {
return true
static func verify(pubkeys: [Data], hashes: [Hash], signature: Data, domain: Domain) -> Bool {
return false
}

static func aggregate(pubkeys: [Data]) -> Data {
return Data(count: 32)
fatalError("not yet implemented")
}
}
Loading