Skip to content

Instantly share code, notes, and snippets.

@tychobrailleur
tychobrailleur / BLS_Signature.md
Created September 6, 2020 16:52
BLS Signature for Busy People

BLS Signature for Busy People

Summary

  • BLS stands for

    • Barreto-Lynn-Scott: BLS12, a Pairing Friendly Elliptic Curve.
    • Boneh-Lynn-Shacham: A Signature Scheme.
  • Signature Aggregation

  • It is possible to verify n aggregate signatures on the same message with just 2 pairings instead of n+1.

diff --git a/build.gradle b/build.gradle
index ce4ed682..2afa9261 100644
--- a/build.gradle
+++ b/build.gradle
@@ -169,6 +169,9 @@ ospackage {
from(jar.outputs.files) {
into 'lib\\ho'
}
+ from(configurations.runtime) {
+ into 'lib\\ho'
import core.db.DBManager;
import core.db.user.UserManager;
import core.gui.comp.entry.SpielerLabelEntry;
import core.gui.theme.ThemeManager;
import core.model.HOVerwaltung;
import core.model.player.MatchRoleID;
import core.model.player.Player;
import javax.swing.*;
import java.awt.*;
@tychobrailleur
tychobrailleur / uniques.clj
Last active June 17, 2020 22:13
Challenge #382
(defn uniques [v]
(->> v
(frequencies)
(filter #(<= (second %) 1))
(map first)))
(uniques [1 2 3 4 5 6 1 2 3 5 6]) ;=> (4)
(uniques [:a :b :c :c]) ;=> (:a :b)
(uniques [1 2 3 1 2 3]) ;=> ()
#!/usr/bin/env bash
java -cp sqltool-2.5.0.jar org.hsqldb.cmdline.SqlTool --rcFile sqltool.rc defaultdb
package com.weblogism;
import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.theme.DarculaTheme;
import javax.swing.*;
import javax.swing.table.*;
import java.awt.*;
public class CenteredLabelFrame extends JFrame {
sql> select count(*) from matchlineuppenaltytaker ;
22
sql> select * from matchlineuppenaltytaker limit 3 ;
PLAYERID POS LINEUPNAME
--------- ----------- ----------
553720172 -1509883904 [null]
553720273 -838795264 [null]
553713664 [null]
Fetched 3 rows.
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>HO</artifactId>
<version>4.0.0</version>
<name>HO</name>
package com.weblogism;
import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.theme.DarculaTheme;
import javax.swing.*;
import javax.swing.table.*;
import java.awt.*;
public class DarkTableRendering extends JFrame {
package com.weblogism;
import com.github.weisj.darklaf.LafManager;
import com.github.weisj.darklaf.theme.DarculaTheme;
import javax.swing.*;
import javax.swing.table.*;
import java.awt.*;
public class DarkTable extends JFrame {